Commit Graph

825 Commits

Author SHA1 Message Date
Pavel Roskin
9d1f2aae71 * vfs.c (vfs_type): Rename to vfs_get_class(). Fix prototype to
avoid using internal vfs type.  Adjust all dependencies.
(vfs_rosplit): Rename to _vfs_get_class().
2003-10-11 06:25:29 +00:00
Pavel Roskin
9632550889 * cpio.c (init_cpiofs): Set vfs_cpiofs_ops.setctl to NULL, or
bad things happen after unsuccessful deletion.
2003-10-11 05:50:34 +00:00
Pavel Roskin
14b3775e71 * vfs.h: Remove obsolete code. 2003-10-11 05:46:50 +00:00
Pavel Roskin
617bf6880a * vfs.c (vfs_flags): Eliminate, it's never assigned a non-zero
value.
* vfs.h: Eliminate unused VFS flags.
* local.c (vfs_nil_ops): Eliminate, it's unused now.
2003-10-10 23:49:44 +00:00
Pavel Roskin
413f8cbabd * fish.c: Convert to calling vfs_register_class().
* fish.h: Eliminate.  Adjust all dependencies.
* direntry.c (vfs_s_init_class): Add missing vfs_s_setctl().
2003-10-10 23:38:03 +00:00
Pavel Roskin
b2edfddd7e * vfs.h: Rename "struct _vfs" to "struct vfs_class". Allow
calling vfs_register() in the file defining the VFS class.
* vfs.c (vfs_init): Register cpiofs in cpio.c.
(vfs_register): Rename to vfs_register_class(), remove "static".
* direntry.c (vfs_s_init_class): New function - generic VFS
class registraction for vfs_s descendants.
* cpio.c: Register VFS class locally.
2003-10-10 23:13:09 +00:00
Pavel Roskin
b1aba35e22 * direntry.c: Make functions static when possible.
* xdirentry.h: Remove unneeded declarations.
2003-10-07 22:38:28 +00:00
Pavel Roskin
9ddf2306e5 * vfs.c (vfs_type_from_op): Check if vfs->prefix is NULL before
calling strlen() on it.
(vfs_strip_suffix_from_filename): Likewise.
(mc_chdir): Don't panic if no chdir function is defined.  This
fixes "cd #gz".
2003-09-28 20:35:08 +00:00
Pavel Roskin
525deb6fc7 * vfs.c (vfs_canon): Remove tilde expansion. mc_chdir() should
act like chdir() of localfs, which doesn't expand tilde.
Reported by Doncho Gunchev <mr700@globalnet.bg>
2003-09-23 05:18:50 +00:00
Pavel Roskin
cdd8f8ce86 * vfs.c (mc_get_current_wd): Use g_strlcpy() to avoid unneeded
padding and silence Valgrind.
2003-09-22 19:43:41 +00:00
Pavel Roskin
ecce86674c * samba/libsmb/namequery.c (_interpret_node_status): Comment
out.
2003-09-10 00:21:52 +00:00
Pavel Roskin
0e77501e9c * samba/include/charset.h: Remove declaration already present in
proto.h.
* samba/include/proto.h: Run through uniq.
2003-09-03 19:21:41 +00:00
Pavel Roskin
31ed57778b * samba/tests/summary.c: Remove. The test is now included ...
* samba/configure.in: ... here.
* samba/tests/README: Remove, it's irrelevant.
* samba/architecture.doc: Likewise.
* samba/include/dlinklist.h: Remove, it's unused.  Adjust
dependencies.
* samba/libsmb/namequery.c (name_status): Remove, it's unused.
* Makefile.am: Remove unused Samba files.
2003-08-30 07:14:54 +00:00
Pavel Roskin
c037f013a3 * samba/include/smb.h: Remove unneeded includes.
* samba/include/ntdomain.h: Remove, it's unused.
* samba/include/rpc*.h: Likewise.
* samba/lib/util_unistr.c: Remove unused code.
* samba/include/proto.h: Regenerate.
* Makefile.am: Remove unused Samba headers.
2003-08-30 06:29:39 +00:00
Pavel Roskin
3bff4a829d * samba/lib/system.c: Remove all unused code.
* samba/include/proto.h: Remove some unused prototypes.
* samba/include/includes.h: Don't include sys/capability.h,
it's not needed.
* samba/configure.in: Remove tests for capabilities and groups,
which are unused now.  Also remove the trivial test.
* Makefile.am: Remove unused Samba tests.
2003-08-29 23:40:37 +00:00
Pavel Roskin
94e14aacfb * direntry.c (vfs_s_dump): Commented out.
* extfs.c (s_readlink): Fix return value and possible buffer
overflow.
* mcfs.c (mcfs_readlink): Fix return value.
* mcserv.c (do_readlink):  Fix possible off-by-one.
(commands): Make const array and remove needless comma.
2003-08-29 22:48:25 +00:00
Pavel Roskin
ef9371e3fa * ftpfs.c (initconn): Use more portable initialization.
* xdirentry.h: Use safer definition of ERRNOR.
2003-08-29 22:32:21 +00:00
Pavel Roskin
780609f437 * extfs/uzip.in: Fix error in parsing size of files over 9999999
bytes long.
2003-08-18 05:17:25 +00:00
Pavel Roskin
10fb3f22f6 * extfs/audio.in: Further portability fixes. Use current date
for timestamps.
Partly from Andrew V. Samoilov <sav@bcs.zp.ua>
2003-08-08 22:07:16 +00:00
Pavel Roskin
0a0ac18aae * extfs/audio.in: Fix non-POSIX constructs.
From GoTaR <gotar@poczta.onet.pl>
2003-08-08 07:58:09 +00:00
Pavel Roskin
e25db8514a * ftpfs.c (login_server): Undo last change. 2003-07-28 16:17:30 +00:00
Pavel Roskin
5efb620cb8 * ftpfs.c (login_server): Fix memory leak.
(linear_abort): Close dsock before reconnect().
(ftpfs_done): Release no_proxy list.
2003-07-23 16:19:33 +00:00
Pavel Roskin
67e50fcb06 * ftpfs.c (load_no_proxy_list): Fix infinitive loop if ferror().
(initconn): Reset variables if setup_passive() fails.
(open_data_connection): Set my_errno to errno before close()
syscall.
(dir_load): Optimize cd_first calculation.
2003-07-21 04:17:39 +00:00
Pavel Roskin
b0b8f65cdc * extfs/lslR.in: Portability fixes. 2003-06-22 09:54:19 +00:00
Pavel Roskin
f40cf73bbd * ftpfs.c (command): Fix misuse of the status variable. Don't
cache the value of SUP.sock before reconnect.
2003-06-22 07:47:33 +00:00
Pavel Roskin
ab84c14503 * vfs.c: Rename mc_return_cwd() to _vfs_get_cwd(). Move
related functions closer to each other, add comments.
2003-06-06 00:50:22 +00:00
Pavel Roskin
68183f4727 * ftpfs.c (ftpfs_done): New function. Free ftpfs_proxy_host and
ftpfs_anonymous_passwd.
2003-06-06 00:16:50 +00:00
Pavel Roskin
a5959b02f9 Typos and britainisms. 2003-06-02 19:31:14 +00:00
Pavel Roskin
92c3ee02ab Fix spelling of necessary. 2003-06-02 17:52:50 +00:00
Pavel Roskin
a3708077d1 * extfs/trpm: Fix compatibility with the secure temporary
filenames used by extfs.  Filter rpm messages from the listing.
2003-05-30 20:27:07 +00:00
Pavel Roskin
295c631c2c * fish.c (file_store): Use block size 1. It's slower, but much
safer.  GNU dd is not persistent enough when reading data.
2003-05-08 06:04:04 +00:00
Pavel Roskin
3a3e1b2c34 * extfs/rpm: If rpm doesn't support --info as in Red Hat 9,
ignore it and don't show HEADER in the listing.
2003-05-08 05:19:57 +00:00
Pavel Roskin
0a6c496e40 * extfs/iso9660.in: Determine presence of Rock Ridge and Joliet
extensions by running "isoinfo -R".  Use current charset for
Joliet extensions.
2003-04-29 18:21:40 +00:00
Pavel Roskin
f9fd075f21 * extfs/iso9660.in: New filesystem for ISO-9660 images.
From Michael Shigorin <mike@altlinux.org>
* extfs/extfs.ini: Add iso9660.
* extfs/Makefile.am: Add extfs/iso9660.in.
2003-04-29 16:03:11 +00:00
Andrew V. Samoilov
6f188101cf * smbfs.c (open_readwrite): New function to replace open_read()
and open_write().  Use cli_close() if cli_qfileinfo() or
cli_getattrE() fail.

(smbfs_open): Use open_readwrite(). Free remote_handle if
open_readwrite() fails.
2003-04-03 10:45:03 +00:00
Andrew V. Samoilov
8ed2f5ac10 * extfs/patchfs.in: Treat '\ No newline at end of file' line
as valid diff contents.  By Adam Byrtek <alpha@debian.org>.
2003-03-27 16:10:42 +00:00
Pavel Roskin
66a0f1a957 * ftpfs.c (login_server): Ask user for account if the server
asks for it.
2003-03-14 16:33:02 +00:00
Andrew V. Samoilov
e2ae450cf0 * samba/libsmb/clientgen.c (cli_session_setup): Convert
username from Unix to DOS codepage before sending.
2003-03-13 14:45:48 +00:00
Andrew V. Samoilov
5e267e2ab6 * extfs/patchfs.in: Minor cleanups by Adam Byrtek <alpha@debian.org>. 2003-03-11 07:14:03 +00:00
Pavel Roskin
4d548cc4b1 * extfs.c (extfs_cmd): Quote localname - it's based on the entry
name, so it can contain dangerous symbols like "&".
2003-03-11 00:01:56 +00:00
Pavel Roskin
6df9219f85 * extfs.c (extfs_open): Retain original filename as a suffix
for the temporary filename.
* vfs.c (mc_def_getlocalcopy): Likewise.
2003-02-26 17:43:18 +00:00
Andrew V. Samoilov
9ec797a024 * extfs/patchfs.in: rm and proper copyin support, more
functions to make code more clear.
2003-02-26 15:08:37 +00:00
Andrew V. Samoilov
55ccd00c73 * direntry.c (vfs_s_dump): SunOS 5.8 warning fix. Reformat function. 2003-02-19 14:04:35 +00:00
Andrew V. Samoilov
cbe4a1adf4 * smbfs.c (smbfs_lseek): Backport from Samba 2.2.7 Suite.
(fake_server_stat): Warning fix for AIX.  Reformat function.
(fake_share_stat): Likewise.
(smbfs_mkdir): Likewise.
2003-02-19 12:56:03 +00:00
Andrew V. Samoilov
004ae18d9e * vfs.c (is_localized_month): New function for locale's
abbreviated month name as any 3 bytes long string without digits
and control characters.
(vfs_parse_filedate): Fallback to is_localized_month() if
is_month() and is_dos_date() fail and set date to Jan 1 1970.
(vfs_parse_ls_lga): Use is_localized_month().
2003-02-19 08:38:49 +00:00
Pavel Roskin
4d4294fdb4 * smbfs.c (smbfs_nothingisopen): Warning fix for 64-bit systems.
(smbfs_free): Likewise.
2003-01-24 20:55:55 +00:00
Pavel Roskin
a25ad31daf * extfs/urar.in: Search $PATH for unrar, fallback to rar. 2003-01-24 07:10:02 +00:00
Andrew V. Samoilov
1dfc24bd42 2002-12-24 Adam Byrtek <alpha@debian.org>
* extfs/patchfs.in: context diff format support, regular
	expressions precompiled, some minor fixes
2003-01-13 12:07:45 +00:00
Pavel Roskin
325bf57d86 Typo fix. 2002-12-30 23:19:14 +00:00
Andrew V. Samoilov
196dd0c1de * extfs/rpm: Use --nosignature only if rpm supports this. 2002-12-29 09:19:36 +00:00
Pavel Roskin
9dc4fc6342 * extfs.c (read_archive): Free archive if the "list" command
returned non-zero, return -1.
Initial implemntation from Adam Byrtek <alpha@debian.org>
2002-12-25 21:42:59 +00:00
Pavel Roskin
ddf2ad1612 * direntry.c (vfs_s_open): If the filesystem is read-only,
disable file creation.
2002-12-25 04:57:26 +00:00
Pavel Roskin
075d359907 * vfs.c (mc_chdir): Don't change current directory until the
low-level chdir succeeds.
2002-12-25 04:02:34 +00:00
Pavel Roskin
3a377a802d * vfs.c (vfs_name): Eliminate - it's unused and wrong. 2002-12-25 02:47:21 +00:00
Andrew V. Samoilov
6fec66eb87 * extfs/mailfs.in: Quote filename when openning mailbox. 2002-12-24 06:56:16 +00:00
Andrew V. Samoilov
1edcc92829 * extfs/apt.in, extfs/dpkg.in: Avoid stat on non-existing file. 2002-12-24 06:33:46 +00:00
Andrew V. Samoilov
f5dc73aa71 * smbfs.c: Resurrect and use myumask for generated permissions. 2002-12-20 18:16:45 +00:00
Andrew V. Samoilov
b6aa32d9b2 * extfs/patchfs.in: Fix patch size calculation. Use bytes to
count size in bytes, not characters (in multibyte encodings char
can be two or more bytes wide).
2002-12-19 18:20:11 +00:00
Pavel Roskin
1df0641954 * extfs/patchfs.in: Don't rely on tell() - it doesn't always
work on pipes.  Determine patch size by adding together the line
lengths.
2002-12-19 17:36:58 +00:00
Pavel Roskin
6ee35e2c55 * extfs/patchfs.in: Allow diffs with function names after "@@".
Don't consider an empty newline as the end of the diff.
2002-12-19 16:51:04 +00:00
Andrew V. Samoilov
76a86209d4 * extfs/patchfs.in (openread): Use quoted $archive when opening
archives.
(list): Set $archive to quoted $_[0].
2002-12-18 14:31:54 +00:00
Pavel Roskin
1f05866c5e * extfs/rpm: Don't check package signatures - it creates a lot
of noise on stderr if the signature is missing.
2002-12-17 00:32:38 +00:00
Pavel Roskin
90821fb2b8 * extfs/mailfs.in: Fixed bug when opening empty mailbox. Added
proper message size (not number of lines, like before) counting.
2002-12-14 20:05:29 +00:00
Pavel Roskin
9b4e62ef79 * extfs/uha.in (mchafs_list): Don't parse the month, use
DD-MM-YYYY output.
(mchafs_copyout): Use cat, not mv, because the files can be on
different filesystems.  Use "q" and don't suppress stderr.
2002-12-14 05:10:52 +00:00
Pavel Roskin
6c465b4a6f * extfs/ulha.in: Don't suppress stderr. 2002-12-14 04:39:09 +00:00
Pavel Roskin
f7a80d36ba * extfs/uzoo.in: Always use "q" option to avoid processing junk.
Always create symlink, do it in a safer directory.
2002-12-14 04:29:12 +00:00
Pavel Roskin
9a8ba89854 * extfs/uarj.in: New script working with open-source ARJ.
Contributed by Viatcheslav Odintsov.
* extfs/uarj: Remove.
* extfs/hp48: Rename to ...
* extfs/hp48.in: ... this.  It needs awk substitution.
* extfs/Makefile.am: Adjust for the above.
2002-12-14 02:46:03 +00:00
Pavel Roskin
05a0c9236d * extfs/ulha.in: Strengthen quoting. 2002-12-13 08:07:33 +00:00
Pavel Roskin
5c038d2f12 * extfs/uha.in: Strengthen quoting. Remove unnecessary space
after filename.  Update URL.  Use safer temporary directory.
2002-12-13 07:53:20 +00:00
Pavel Roskin
c055823512 * extfs/uarj: New list-only implementation that doesn't need
patched unarj.
* extfs/unarj.diff: Remove.
* extfs/Makefile.am: Remove extfs/unarj.diff.
2002-12-13 07:20:54 +00:00
Pavel Roskin
84f178c86f * extfs/patchfs.in: "copyin" method added (with compressed files
support).  Files inside archive now have '.diff' extension.
Temporary file not needed any more.  Proper handling of
"/dev/null" filenames, filename heuristics based on diff info
page.  Set files owner and group as the archive.
* extfs/audio.in: CDDB_TIMEOUT variable added.
2002-12-13 04:42:08 +00:00
Pavel Roskin
63faf36f15 * vfs.c (is_dos_date): Allow 4-digit years.
(vfs_parse_filedate): Don't limit length of the year field for
DOS dates, subtract 1900 if necessary.
2002-12-13 00:22:06 +00:00
Pavel Roskin
ec8375764b * extfs/apt.in: Fix Y2K bug.
* extfs/deba.in: Likewise.
* extfs/debd.in: Likewise.
* extfs/dpkg.in: Likewise.
Reported by Adam Byrtek <alpha@debian.org>
2002-12-12 16:15:30 +00:00
Pavel Roskin
5ea98ec55f * extfs/patchfs.in: Print 4-digit year. If str2time is not
available, use current time, not 0.
2002-12-12 16:08:34 +00:00
Andrew V. Samoilov
320b62f87e * extfs/urar.in: rar lists directories after files, so sort "list"
command output by names to prevent duplications.
2002-12-12 12:48:30 +00:00
Pavel Roskin
5b24e5dc1b * extfs/urar.in: Strengthen quoting. Don't use full path to rar
and unrar.  Don't redirect stderr to /dev/null.
2002-12-12 09:39:46 +00:00
Pavel Roskin
a50ddb5450 * extfs/uar.in: Simplify "list" command, don't use current year.
Use more careful quoting.
2002-12-12 09:01:40 +00:00
Pavel Roskin
3662dd53f2 * extfs/apt.in: Add non-interactive remove using dpkg. 2002-12-12 07:42:29 +00:00
Pavel Roskin
92a3d687fd * extfs/apt.in: Add 1 to the month number. Perl localtime()
uses range 0..11 while extfs expects range 1..12.
* extfs/deba.in: Likewise.
* extfs/debd.in: Likewise.
* extfs/dpkg.in: Likewise.
2002-12-11 21:19:43 +00:00
Pavel Roskin
adf60b79eb * extfs/audio: Move ...
* extfs/audio.in: ... here.  Add CDDB support.
* extfs/Makefile.am: Adjust for the above.
2002-12-11 19:24:16 +00:00
Pavel Roskin
184ae978c0 * extfs/mailfs: Try using UnixDate() from Date::Manip if it's
available.  Warning fix.
2002-12-11 19:10:05 +00:00
Andrew V. Samoilov
ec4569b544 * extfs/patchfs: Use quotemeta() before giving filename to shell. 2002-12-11 11:03:25 +00:00
Andrew V. Samoilov
60a725395c * vfs.c (mc_stat): Make first argument const.
(mc_lstat): Likewise.
* vfs.h: Adjust declarations and remove some useless defines.
2002-12-11 09:36:50 +00:00
Pavel Roskin
c2d7ef04dc * extfs/a: Enable Perl warnings. Ignore entries without a date.
Warning fixes.  Don't redirect stderr to /dev/null - it doesn't
mess the screen now.
2002-12-10 21:38:06 +00:00
Andrew V. Samoilov
c63b6b1735 Typos... 2002-12-10 15:32:48 +00:00
Pavel Roskin
d02ca2efc7 typo 2002-12-09 20:16:49 +00:00
Pavel Roskin
0b357d16a3 * extfs/patchfs: Rewritten is Perl. File size is now displayed
properly.
2002-12-09 20:16:34 +00:00
Pavel Roskin
0bb4e479a2 * extfs/ftplist.in: Remove, it's obsoleted by the hotlist.
* extfs/ucpio.in: Remove, it's obsoleted ucpio.c.
* extfs/Makefile.am: Remove all references to them.
* extfs/extfs.ini: Likewise.
2002-12-09 14:16:32 +00:00
Pavel Roskin
0fce236546 * extfs.c (__find_entry): When creating entried for regular
files, set initial permissions to S_IFREG | 0666.  This fixes
problems with viewing and editing newly added files.
2002-12-09 05:21:48 +00:00
Pavel Roskin
9d265c52d6 * extfs/bpp: Fix file sizes, contents of INSTALL and UPGRADE. 2002-12-09 05:01:02 +00:00
Pavel Roskin
f71323845c * extfs/uar.in: Fix "copyin" command. 2002-12-09 04:28:00 +00:00
Pavel Roskin
7a16741def * extfs.c (extfs_open): Don't run "copyout" if the file just has
been created or O_TRUNC is given in the flags.
Reported by Adam Byrtek 'alpha' <alpha@irc.pl>
2002-12-07 02:37:58 +00:00
Pavel Roskin
fd44d72c55 * extfs/uar.in: Implement "copyin" and "rm" commands. 2002-12-07 00:02:12 +00:00
Andrew V. Samoilov
4925d2cdd5 * extfs.c: Don't include ../src/profile.h.
(extfs_open): Remove local_filename if copyout fails.
2002-12-06 14:44:51 +00:00
Pavel Roskin
03b1481cda * extfs.h: Remove "extfsstat" from struct archive - it's unused
outside open_archive().  Adjust the dependencies.
* extfs.c: Make hstat local variable.
2002-12-06 03:14:41 +00:00
Pavel Roskin
271a2564fd * sfs.c: Remove "uid" from struct cachedfile - it's unused now. 2002-12-06 02:18:10 +00:00
Pavel Roskin
b9c6a9b3d1 * vfs.h: Remove vfs_uid and vfs_gid. Fix all dependencies. 2002-12-06 02:14:28 +00:00
Pavel Roskin
a5576742c3 * extfs.c (open_archive): Use open_error_pipe before popen() and
close_error_pipe() if popen() fails to handle stderr.
(read_archive): Use close_error_pipe() after pclose().
2002-12-05 17:05:27 +00:00
Pavel Roskin
5746ba638b * ftpfs.c: Define INADDR_NONE if it's not already defined.
Needed for Solaris 9.
Reported by Roman Dorokhin <dorokhin@cybermail.net>
2002-12-05 14:47:24 +00:00
Andrew V. Samoilov
7b75eaf984 * extfs.c (open_archive): Don't use open_error_pipe() and
close_error_pipe() - it gets stuck on output that exceeds 4
kilobytes.
2002-12-03 12:24:37 +00:00
Pavel Roskin
474ff43316 * extfs.c (open_archive): Use open_error_pipe() and close_error_pipe()
to prevent stderr from extfs scripts pollute the screen.
(extfs_cmd): New function to run extfs scripts and handle stderr in one
place.
(extfs_open): Use extfs_cmd().
(extfs_close): Likewise.
(extfs_unlink): Likewise.
(extfs_mkdir): Likewise.
(extfs_rmdir): Likewise.
2002-12-01 20:35:15 +00:00
Pavel Roskin
30503bef51 * extfs/Makefile.am: Add uzip to EXTFS_OUT. 2002-12-01 20:25:54 +00:00
Pavel Roskin
7ba4aacd85 * mcserv.c (do_classic_auth): Restore support for shadow
passwords.  Use crypt() instead of pw_encrypt() - the later is
missing on Slackware 8.0.  Reported by
Christian Laubscher <christian.laubscher@tiscalinet.ch>
2002-11-17 05:38:29 +00:00
Pavel Roskin
56d650bbf1 * Makefile.am: Consolidate mcserv libraries into MCSERVLIBS. 2002-11-17 01:00:42 +00:00
Pavel Roskin
27899bfa2c * mcserv.c: Include getopt.h, don't redefine optarg. 2002-11-15 17:07:06 +00:00
Pavel Roskin
dc724cdb6e * names.c: Only leave actually used functions. 2002-11-15 06:19:34 +00:00
Pavel Roskin
6b2d184d9e * ftpfs.c (ftpfs_open_socket): Use INADDR_NONE, not -1. 2002-11-15 05:41:27 +00:00
Pavel Roskin
70ec6bbd26 Remove fish_which(). 2002-11-13 04:00:28 +00:00
Pavel Roskin
15f131afc9 * fish.c (fish_which): Make static. 2002-11-13 03:54:24 +00:00
Andrew V. Samoilov
5959aff123 * ftpfs.c (linear_abort): Close data socket dsock. 2002-11-12 15:26:18 +00:00
Pavel Roskin
6b3a6dd169 * vfs.h [USE_VFS] (mc_setctl): Specify argument types. 2002-11-11 19:25:21 +00:00
Pavel Roskin
7f6b843a94 * cpio.c (cpiofs_data): Warning fix in initization.
* tar.c (tarfs_data): Likewise.
2002-11-11 07:46:21 +00:00
Pavel Roskin
91f7a47331 * vfs.c: Leave only necessary includes from ../src. 2002-11-11 06:28:30 +00:00
Pavel Roskin
e5140f37d4 * vfs.c: Make the last argument to MC_OP non-empty in the
definition of MC_HANDLEOP.  Needed for Mac OS X.
Reported by Wim Rijnders <wimrijnders@home.nl>
2002-11-11 02:03:35 +00:00
Pavel Roskin
f7477fb810 Move the entry about vfs/extfs/a to vfs/ChangeLog. 2002-11-11 01:49:52 +00:00
Andrew V. Samoilov
6b0df00830 * smbfs.c (new_dir_entry): Initialize st_ino, so recursive directory
copying is possible now.
2002-11-07 14:49:13 +00:00
Pavel Roskin
27244da8cc s/shue/sure/ 2002-11-06 20:10:21 +00:00
Andrew V. Samoilov
a26a1e1c0d * vfs.c (mc_get_current_wd): Make shue returned string is null terminated. 2002-11-06 18:48:36 +00:00
Pavel Roskin
3f40a2b274 * vfs.c: Remove unused code.
* vfs.h: Define vfs_uid and vfs_gid as 0, they never change.
2002-11-03 10:24:45 +00:00
Andrew V. Samoilov
e458d50651 * fish.c: Use name_quote() to quote filenames.
(file_store): Close localname on error.
2002-11-01 16:55:02 +00:00
Pavel Roskin
43b3170fc4 * ftpfs.c (linear_abort): Close data socket, ProFTPD 1.2.6
expects the client to close it.
2002-10-25 21:50:21 +00:00
Pavel Roskin
7bb1b58274 * vfs.h: Remove tar_gzipped_memlimit.
From Christian Laubscher <christian.laubscher@tiscalinet.ch>
2002-10-13 23:25:57 +00:00
Andrew V. Samoilov
f4a0b6e40b * smbfs.c (fake_share_stat): Make sure share exists by
smbfs_get_path() and fill buf with realistic data
if current_share_info is NULL.  Reformat function.
(smbfs_get_path): Add const qualifier to path.
2002-10-11 15:29:55 +00:00
Andrew V. Samoilov
872e77eb1d * smbfs.c: Allow username in URL (/#smb:[user@]machine) and
reformat changed functions.
(smbfs_get_host_and_username): Fix comment.
(smbfs_fill_names): Add username@ before hostname.
(smbfs_open_link): Use IPC$ if share is empty.
(smbfs_get_path): Pass remote_path to smbfs_open_link().
(smbfs_stat): Copy username@ to server_url if passed.
2002-10-09 13:18:10 +00:00
Pavel Roskin
604950704a * ftpfs.c (linear_abort): Add a timeout after which a reconnect
is performed instead of further fetching of the remaining data.
2002-10-07 17:56:15 +00:00
Pavel Roskin
416008fc74 * direntry.c (vfs_s_resolve_symlink): Use g_snprintf() instead
of non-portable snprintf().
Reported by Xu Qiang <Xu.Qiang@xssc.sgp.xerox.com>
2002-10-07 05:32:45 +00:00
Pavel Roskin
8c39d20a57 * mcfs.c (mcfs_lseek): Explicity cast offset to int. This fixes
viewing and editing files on mcfs.
2002-10-05 01:55:58 +00:00
Pavel Roskin
b5e7441d98 * tcputil.c: Split mcfs-specific part to
* mcfsutil.c: ... this.
* tcputil.h: Split mcfs-specific part to
* mcfsutil.h: ... this.
* Makefile.am: Add mcfsutil.c and mcfsutil.h.
* mcserv.c: Define own got_sigpipe, which is always 0, since
mcserv doesn't call tcp_init().
2002-10-05 01:02:07 +00:00
Pavel Roskin
51a6434b44 * Makefile.am: Don't link mcserv with glib. It's unreasonable
to require a glib port for embedded systems mcserv may run on.
* mcserv.c: Replace all glib calls with standard libc calls.
* tcputil.c (rpc_get): Likewise.
2002-10-05 00:31:12 +00:00
Pavel Roskin
4d7cf0f3a7 * mcserv.c (get_client): Don't try to find the address family
from the hostname.  Always use AF_INET, because everything else
is unsupported.
2002-10-04 23:35:54 +00:00
Andrew V. Samoilov
3d4ea6e96d * sfs.c (vfmake): Use open_error_pipe() and close_error_pipe(). 2002-10-04 13:24:10 +00:00
Pavel Roskin
8cdc2bcecd Fix the date. My clock was 1 day ahead. 2002-10-01 21:45:25 +00:00
Andrew V. Samoilov
07f3c2f7af * xdirentry.h: Comment out magic field everywhere. 2002-10-01 17:03:55 +00:00
Pavel Roskin
bd5da0af5e * Makefile.am (VFSHDRS): Remove container.h. 2002-10-01 04:26:25 +00:00
Pavel Roskin
409994fe92 * tcputil.c (check_hooks): Remove, it does nothing. Also remove
all related data structures.
2002-10-01 04:18:38 +00:00
Pavel Roskin
379ea9b60d * tcputil.c (get_remote_port): Move to mcfs.c.
(send_string): Move to mcserv.c.
(rpc_add_get_callback): Remove, it's unused.
2002-10-01 04:09:31 +00:00
Pavel Roskin
95ffa342bd * container.h: Remove, it's unused. 2002-10-01 03:54:05 +00:00
Pavel Roskin
924c985630 * utilvfs.c: Remove tests, since get_host_and_username() is
missing.
* mcfs.c (open_tcp_link): Make static.
* tcputil.h: Remove unused definitions.
2002-10-01 03:47:46 +00:00
Pavel Roskin
99800b2f24 * direntry.c (vfs_s_retrieve_file): Allow interrupt by Ctrl-C.
From Jindrich Makovicka <makovick@KMLinux.fjfi.cvut.cz>
2002-09-29 18:35:14 +00:00
Pavel Roskin
b31f058eea s/appropriative/suitable/ 2002-09-26 23:40:03 +00:00
Pavel Roskin
bbc35a31cf * sfs.c (sfs_init): Parametrize sfs.ini to allow reuse of the
messages in other places.
2002-09-26 22:51:27 +00:00
Pavel Roskin
d2417f2096 * vfs.c (vfs_parse_filemode): Fix parsing for filenames that
begin with a number.
From Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz>
2002-09-25 05:09:08 +00:00
Andrew V. Samoilov
e98d979a69 * smbfs.c: Undef USE_NCURSES - no needs to include *curces.h.
(smbfs_loaddir): Fix warning.
2002-09-24 15:26:55 +00:00
Pavel Roskin
b803c4463c Typo fix. 2002-09-21 23:04:54 +00:00
Pavel Roskin
e90d91e7a0 * mcfs.c: Move config,h to the beginning. 2002-09-21 23:01:41 +00:00
Andrew V. Samoilov
50ac0519dd * tcputil.c [!WITH_MCFS]: Disable mcfs related code.
* mcfs.c [!WITH_MCFS]: Disable all code.
2002-09-19 14:37:22 +00:00
Andrew V. Samoilov
72486652cb * smbfs.c: Don't define BOOL_DEFINED to fix compilation on SunOS 5.8. 2002-09-16 14:20:04 +00:00
Andrew V. Samoilov
3bab5199aa Fix some possible NULL dereferences. 2002-09-13 11:29:35 +00:00
Andrew V. Samoilov
6a6fb355df * smbfs.c (smbfs_set_debugf): New function to specify logfile.
* smbfs.h: Declare smbfs_set_debugf().
2002-09-13 09:46:33 +00:00
Pavel Roskin
30cc264176 * mcserv.c: Declare crypt if crypt.h is missing and we are not
using PAM.
2002-09-12 22:24:09 +00:00
Andrew V. Samoilov
14c3f90d2f * smbfs.c (statfile_helper): Merge with loaddir_helper().
(get_remote_stat): Use loaddir_helper().  Care about
single_entry instead of eliminated statfile_helper().
2002-09-12 06:25:21 +00:00
Andrew V. Samoilov
8e1af10110 * samba/libsmb/clientgen.c (cli_NetServerEnum): Add void*
parameter to (*fn)() and void *state parameter.
(cli_list): Likewise.
(cli_RNetShareEnum): Likewise.  Return int.
* samba/include/proto.h: Adjust declarations.
* smbfs.c: Adjust all helpers and dependencies.
From Samba patchsets.
2002-09-11 16:43:41 +00:00
Andrew V. Samoilov
1f06c11cc6 * smbfs.c (statfile_helper): Remove write permissions if file
has readonly attribute.  Add execute permissions for directory.
Reformat whole function.
2002-09-11 15:35:55 +00:00
Andrew V. Samoilov
996dd893b5 * smbfs.c (loaddir_helper): Remove write permissions if file
has readonly attribute.  Add execute permissions for directory.
Reformat whole function.
(server_browsing_helper): Add execute permissions.  Reformat.
(browsing_helper): Likewise.
2002-09-11 12:53:58 +00:00
Pavel Roskin
9c04fa4313 * vfs.h: Remove BROKEN_PATHS, it's unused. 2002-09-10 21:51:12 +00:00
Pavel Roskin
8568fc50d9 * Make-alone.am: Get rid of all standalone code, it has been
unmaintained for years.
2002-09-10 21:48:49 +00:00
Pavel Roskin
04c7da6358 * direntry.c [!USE_NETCODE]: Disable functions used in networked
filesystems only.
2002-09-06 01:34:12 +00:00
Pavel Roskin
3697034770 * vfs.c (vfs_init) [!USE_NETCODE]: Don't register fish. 2002-09-06 01:27:45 +00:00
Pavel Roskin
3c7cc35025 * ftpfs.c: Check for existance of arpa/inet.h when using it.
* mcfs.c: Likewise.
* mcserv.c: Likewise.
* tcputil.c: Likewise.
* utilvfs.c: Likewise.
2002-09-06 01:02:25 +00:00
Pavel Roskin
8355430596 * vfs.c (vfs_get_password): Use INPUT_PASSWORD to request a
password reliably.
2002-09-03 17:38:30 +00:00
Andrew V. Samoilov
47f1a6a51b * smbfs.c (smbfs_close): Return -1 if cli->outbuf is NULL and
set my_errno to EINVAL - temporary fix.  Reformat function.
2002-09-02 10:54:22 +00:00
Andrew V. Samoilov
019c16b047 * samba/param/loadparm.c: Add global_scope variable.
(parm_table): Add netbios scope parameter.
* samba/lib/util.c: Remove scope variable.  Use global_scope instead.
* samba/libsmb/nmblib.c (make_nmb_name): Remove scope parameter and
use global_scope instead.
* samba/libsmb/namequery.c: Adjust make_nmb_name() calls.
* samba/include/proto.h: Adjust make_nmb_name() declaration.

From samba 2.0.7 patchset.

* samba/param/loadparm.c (lp_adduser_script): Commented out.
(lp_deluser_script): Likewise.
(lp_add_printer): Likewise.
(lp_add_one_printer): Likewise.
* samba/lib/util.c (reduce_name): Likewise.
(transfer_file): Likewise.

* smbfs.c (smbfs_do_connect): Adjust make_nmb_name() calls.
2002-09-01 06:51:24 +00:00
Pavel Roskin
565df8c70f * extfs/urar.in: Use rar if unrar is missing.
From PLD Linux Distribution.
2002-08-26 04:51:10 +00:00
Pavel Roskin
44197c130d * extfs/a: Use more portable way to redirect all output to
/dev/null.  From PLD Linux Distribution.
2002-08-26 04:04:28 +00:00
Pavel Roskin
6f0a3ef49f * vfs.c (vfs_parse_ls_lga): Better error message, avoid empty
error messages.
2002-08-24 16:29:24 +00:00
Pavel Roskin
f2bb68f3c2 * Makefile.am: Use mcserv_LDFLAGS, not mcserv_LDADD for the
libraries.
2002-08-23 21:22:43 +00:00
Pavel Roskin
5873f73e63 * mcserv.c: Remove old-style Linux-only support for shadow
passwords.
* Makefile.am: Remove reference to SHADOWLIB.
2002-08-22 18:39:54 +00:00
Andrew V. Samoilov
a3668cd14a * ftpfs.c (dir_load): Don't handle empty remote_path in special
way.
2002-08-21 08:22:33 +00:00
Pavel Roskin
1c411834a8 * direntry.c (vfs_s_get_line): Fix off-by-one buffer overflow. 2002-08-20 01:08:34 +00:00
Pavel Roskin
9a36e62af2 * fish.c (pipeopen): Use _exit(), not vfs_die() to terminate the
child if execvp() fails.
2002-08-20 00:14:33 +00:00
Pavel Roskin
35aa47461b * sfs.c: Don't use flag EXECUTE_SETUID because it's being
removed as insecure and EXECUTE_WAIT because it has no effect.
* extfs.c: Likewise.
2002-08-19 23:20:03 +00:00
Pavel Roskin
7608383a3e * mcfs.c [!WITH_MCFS]: Disable most code. 2002-08-19 07:22:01 +00:00
Pavel Roskin
f319f7671f * vfs.h: Declare vfs_timeout and tar_gzipped_memlimit. 2002-08-19 00:59:02 +00:00
Pavel Roskin
b1dbe77c5b * vfs.c (mc_def_getlocalcopy): Preserve existing extension. 2002-08-15 22:30:05 +00:00
Pavel Roskin
7f923cc9c0 * direntry.c (vfs_s_getlocalcopy): Fix potentially dangerous
strcpy().
2002-08-15 21:31:54 +00:00
Pavel Roskin
cf8ab0de99 * extfs.c (s_readdir): Simplify.
* direntry.c (vfs_s_readdir): Use vfs_dirent.
* mcfs.c (mcfs_readdir): Likewise.
* smbfs.c (smbfs_readdir): Likewise.
* undelfs.c (undelfs_readdir): Use vfs_dirent and
compute_namelen().
2002-08-15 21:15:17 +00:00
Pavel Roskin
37f335b8c0 * vfs.h: Introduce union vfs_dirent to ensure that we have
enough space for the filename.
* extfs.c (s_readdir): Use vfs_dirent.  Avoid strcpy().
2002-08-15 20:29:34 +00:00
Pavel Roskin
8b8d7de7ca * direntry.c (vfs_s_readdir): Use compute_namelen().
* extfs.c (s_readdir): Likewise.
* mcfs.c (mcfs_readdir): Likewise.
* smbfs.c (smbfs_readdir): Likewise.
2002-08-15 19:38:17 +00:00
Pavel Roskin
11a66b3ffd * vfs.h [!USE_VFS]: Declare mc_setctl as static inline function
to fix warnings.
2002-08-15 01:33:11 +00:00
Andrew V. Samoilov
c29498db11 * smbfs.c (myumask): Removed. It is only written and never read.
(smbfs_init): Use PATH_SEP_STR and reformat.
2002-08-06 06:02:52 +00:00
Pavel Roskin
c0d6dec814 * mcserv.c: Remove all references to MAD.
* vfs.c: Likewise.
2002-08-01 19:48:21 +00:00
Andrew V. Samoilov
8f8add60bb * samba/lib/util.c (reg_split_key): Ditto.
(reg_get_subkey): Ditto.
2002-07-31 13:52:04 +00:00
Andrew V. Samoilov
7e6893ed6c (cli_printjob_del): Commented out.
(cli_print_queue): Ditto.
* samba/lib/system.c (sys_waitpid): Ditto.
2002-07-31 12:03:02 +00:00
Andrew V. Samoilov
423e57ef8d * samba/libsmb/clientgen.c (cli_send_tconX): Add missed
unix_to_dos() call.
2002-07-31 11:41:16 +00:00
Andrew V. Samoilov
3e982cf3fc * samba/configure.in: Don't check for union semun.
* samba/include/includes.h [!HAVE_UNION_SEMUN]: Don't
declare union semun.
2002-07-29 15:19:36 +00:00
Pavel Roskin
e66ab47cf1 * direntry.c (vfs_s_find_entry_linear): Canonicalize path before searching 2002-07-26 21:58:43 +00:00
Andrew V. Samoilov
6bd685bd7c * xdirentry.h (vfs_s_fh.u.fish): Add append field.
* fish.c (fish_fh_open): Care about append.
(linear_open): Likewise.
(fish_store): Append data to target file if append is true.
2002-07-26 01:33:40 +00:00
Andrew V. Samoilov
3dc53f9d41 * mcserv.c [HAVE_MAD]: Include "../src/mad.c" at the end of
file to fix compilation.
(main): Add mad_init() and mad_finalize().
2002-07-25 20:33:31 +00:00
Pavel Roskin
2be225d9e0 * ftpfs.c: Don't use SUP.home, use SUP.cwdir.
* fish.c: Likewise.
(dir_load): Update SUP.cwdir.
* xdirentry.h: Remove "home" field for fish and ftpfs.
2002-07-19 16:36:32 +00:00
Pavel Roskin
982a256ee0 * xdirentry.h: Get rid of ifree(), it's equivalent to g_free().
* direntry.c: Likewise.
* fish.c: Likewise.
* ftpfs.c: Likewise.
2002-07-19 16:04:27 +00:00
Pavel Roskin
b68a8a5ca8 * fish.c (fish_fill_names): New function, replacement for
generic vfs_s_fill_names() which didn't work right with fish.
2002-07-19 05:29:31 +00:00
Pavel Roskin
0b4a33c10f * undelfs.c (undelfs_opendir): Use parametrized messages without
VFS name for success and failure.
* fish.c (dir_load): Use new messages from undelfs.c, indicate
success by printing "done".
* ftpfs.c (dir_load): Likewise.
2002-07-19 04:29:37 +00:00
Pavel Roskin
82009e2ab0 * cpio.c (cpio_read_crc_head): Undo change in the error message. 2002-07-15 16:16:26 +00:00
Pavel Roskin
7978b33a9d * ftpfs.c: Replace bzero and bcopy with memset and memcpy.
* mcfs.c: Likewise.
* mcserv.c: Likewise.
* smbfs.c: Likewise.
* tar.c: Likewise.
2002-07-15 05:31:43 +00:00
Pavel Roskin
1517700adf * fish.c (open_archive_int): Don't combine "export" and
assignment into one command - it's not portable.  Set LC_TIME
to "C" as well.
2002-07-14 22:56:13 +00:00
Pavel Roskin
5f771b594e * fish.c (open_archive_int): Set remote locale to C, otherwise
timestamps cannot be parsed in some locales.
2002-07-14 16:27:15 +00:00
Pavel Roskin
da27ec10cd * fish.c (file_store): Reduce input block size to 256 bytes,
otherwise dd gets partial blocks.
2002-07-13 01:10:24 +00:00
Pavel Roskin
00700a9ce2 * ftpfs.c (login_server) [HSC_PROXY]: Fix crash. 2002-07-13 00:22:49 +00:00
Pavel Roskin
afd132617d * ftpfs.c (ftp_split_url): Implement looking up password in
.netrc for known user.
2002-07-12 23:41:43 +00:00
Pavel Roskin
e88191dd7c * ftpfs.c (ftp_split_url): Don't expect lookup_netrc() to always
return a username.
(netrc_has_incorrect_mode): Don't free anything, it can result
in freeing some variables twice.
(find_machine): New function to find matching "machine" or
"default" token.
(lookup_netrc): Eliminate external loop - scan for login and
password, but don't fallback to another string in case of
trouble.
2002-07-12 23:20:03 +00:00
Pavel Roskin
14bac1dda4 * ftpfs.c: Introduce enum keyword_t to improve readability.
(netrc_next): Fix return value for unknown keywords.
(lookup_netrc): Remove special processing of "*netrc*".
2002-07-12 20:00:03 +00:00
Pavel Roskin
1accbb4789 * ftpfs.c (ftp_split_url): Move protection against pass being
NULL ...
(lookup_netrc): ... here.
2002-07-12 17:39:01 +00:00
Pavel Roskin
4f52b831df * xdirentry.h: Eliminate use_proxy field.
* ftpfs.c (open_archive_int): Use SUP.proxy instead of
SUP.use_proxy.
(open_archive): Set SUP.proxy to ftpfs_proxy_host.
* ftpfs.h: Eliminate unused structures.
2002-07-12 00:05:11 +00:00
Pavel Roskin
6ddf5f78ed * vfs.h: Rename URL_DEFAULTANON to URL_ALLOW_ANON.
* utilvfs.c (vfs_split_url): Return NULL as username if
URL_ALLOW_ANON is set and no username is found in the URL,
otherwise use current name.
* ftpfs.c (ftp_split_url): New function - split URL and look up
username and password if needed.
(login_server): Use ftp_split_url().
(archive_same): Likewise.
2002-07-11 23:08:30 +00:00
Pavel Roskin
2acfb89cd4 * tcputil.h: Move use_netrc declaration ...
* vfs.h: ... here.
* ftpfs.c: Implement .netrc support unconditionally.
(lookup_netrc): Make static.
* utilvfs.c: Initialize default_is_netrc.
From Thomas Zajic <zlatko@gmx.at>
2002-07-10 21:26:55 +00:00
Pavel Roskin
6f3a7c8029 * direntry.c (vfs_s_open): Don't pass O_LINEAR to open() -
this flag is for VFS only, and causes side effects in Cygwin.
* extfs.c (extfs_open): Likewise.
* sfs.c (sfs_open): Likewise.
Reported by Pavel Tsekov <ptsekov@gmx.net>
2002-07-10 17:56:27 +00:00
Pavel Roskin
e385a9c9ab * ftpfs.c (setup_passive): Cast arguments to isdigit() to
unsigned char for compatibility with non-GNU libc.
* tar.c (from_oct): Likewise with isspace().
Reported by Roland Illig <1illig@informatik.uni-hamburg.de>
2002-07-03 19:09:03 +00:00
Pavel Roskin
6ecbdd05ab * extfs.c (extfs_fill_names): Generate filename#vfsname/dir
instead of #vfsname/filename/dir.  Use PATH_SEP_STR.
2002-07-03 15:54:01 +00:00
Pavel Roskin
694468d9bb * sfs.c (sfs_free): Fix memory leak.
(sfs_init): Use PATH_SEP_STR.
2002-07-03 15:27:36 +00:00
Pavel Roskin
3738d4cee0 * cpio.c (cpio_open_cpio_file): Fix type initialization.
From Andrew V. Samoilov <kai@cmail.ru>
2002-07-03 13:10:01 +00:00
Pavel Roskin
23ef3d3a9d * Makefile.am: Add samba to SUBDIRS. Forcedly set DISTDIRS to
extfs.  Remove parts that are now handled by samba/Makefile.
* samba/Makefile.in: Add more empty targets for Automake
compatibility.
2002-07-02 23:10:15 +00:00
Pavel Roskin
c8ef2d7ace * ftpfs.c (send_ftp_command): Use "anonymous@" as default
anonymous password.
From Eduardo Perez Ureta" <eperez@it.uc3m.es>
2002-07-02 17:08:10 +00:00
Pavel Roskin
5389b39585 * vfs.c: Add protection against NULL strings to all is_*() functions. 2002-06-25 21:51:37 +00:00
Andrew V. Samoilov
3663bff65f * Makefile.am (SAMBA_DIST): Remove tests/ftruncate.c
* samba/tests/ftruncate.c: Removed.
* samba/configure.in: Don't check if ftruncate() can
extend a file.
2002-06-21 16:25:02 +00:00
Andrew V. Samoilov
d3aceae9f7 * samba/lib/system.c (sys_ftruncate): Commented out.
* samba/lib/util.c (set_filelen): Likewise.
(setbuffer): Likewise.
2002-06-21 16:01:53 +00:00
Andrew V. Samoilov
dabc54bbcd * smbfs.c: Undefine PACKAGE_BUGREPORT, PACKAGE_NAME,
PACKAGE_STRING, PACKAGE_TARNAME and PACKAGE_VERSION
before including "samba/include/config.h" to prevent warnings.
(smbfs_init): Set DEBUGLEVEL to 0.
(do_connect): Rename to ...
(smbfs_do_connect): ... this to avoid namespace clash and
make static.  Make server const. Adjust all callers.
(smbfs_add_dots): Remove.
(smbfs_stat): Remove code duplication.
(smbfs_lstat): Define as smbfs_stat.
2002-06-21 12:26:45 +00:00
Andrew V. Samoilov
1d9879b0be Fix offset calculation for symbolic links. 2002-06-06 15:16:29 +00:00
Andrew V. Samoilov
14ed580196 * cpio.c (cpio_read_oldc_head): Use char[] for buf instead
of char*[].  Remove unneeded casts.  Fix error message.
(cpio_create_entry): G_free name.
2002-06-06 10:54:35 +00:00
Pavel Roskin
272cf8fd96 * Makefile.am (mcserv_SOURCES): Remove $(top_srcdir)/src/mad.c,
it breaks "make distcheck".
2002-05-22 17:26:56 +00:00
Andrew V. Samoilov
a60f38583a * xdirentry.h (vfs_s_fh.u.ftp): Add append field.
(vfs_s_data.file_store): Change second argument
to (vfs_s_fh *fh).
* direntry.c (vfs_s_close): Adjust.
* fish.c (file_store): Likewise.
* ftpfs.c (file_store): Likewise.  Use "APPE" if
fh->u.ftp.append is true.
(linear_start): Care about fh->u.ftp.append.
(ftpfs_fh_open): Likewise.
2002-05-22 17:19:24 +00:00
Pavel Roskin
19121d3c08 * Makefile.am: Set samba_libsamba_a_SOURCES to an empty value
to override the default.
2002-05-22 16:12:55 +00:00
Andrew V. Samoilov
b314cad164 * fish.c (fish_fh_open): Generate fh->ino->localname
if this one is NULL and file is opened for writting only.
* ftpfs.c (ftpfs_fh_open): Likewise if control_connection_buzy
is true.
2002-05-22 13:31:15 +00:00
Andrew V. Samoilov
12ba0fc8a4 * direntry.c (vfs_s_retrieve_file): Please, care about
fish.local_stat ...
* fish.c (linear_close): ... here.
2002-05-21 17:27:30 +00:00
Andrew V. Samoilov
c5626b241c * ftpfs.c (linear_read): Unset control_connection_buzy
on EOF.
(ftpfs_fh_close): Call vfs_s_invalidate ().
2002-05-21 17:10:50 +00:00
Andrew V. Samoilov
2b3c6b8f0b * fish.c (fish_fh_open): Don't retrieve file if it is
opened for writting only.
2002-05-21 10:50:55 +00:00
Andrew V. Samoilov
09bad78c80 * xdirentry.h (vfs_s_super): Add control_connection_buzy
field to ftp struct.

	* ftpfs.c (linear_start): Set control_connection_buzy.
	(linear_abort): Unset control_connection_buzy.
	(ftpfs_fh_open): Don't retrieve file if it is
	opened for writting only.  Open data connection as
	fh->handle and unlink/unset local temporary file
	if control connection isn't buzy.
	(ftpfs_fh_close): New function to serve opened in
	ftpfs_fh_open() data connection.  Unset fh->changed
	to prevent MEDATA->file_store() call from vfs_s_close().
2002-05-17 13:32:02 +00:00
Andrew V. Samoilov
05a0bd1240 * samba/include/includes.h: Eliminate all references to
HAVE_LIBREADLINE.
2002-05-17 11:38:05 +00:00
Andrew V. Samoilov
a844c07aac * direntry.c (vfs_s_read): Move MEDATA->linear_start() ...
* (vfs_s_open): ... here.
2002-05-17 07:08:03 +00:00
Andrew V. Samoilov
ae8e84d163 * Makefile.am (noinst_LIBRARIES): Add samba/libsamba.a
if USE_SAMBA_FS is true.
* (libvfs-mc.a): Don't merge object files with libsamba.a.
2002-05-14 12:41:04 +00:00
Andrew V. Samoilov
baf5611b51 * vfs.c (MC_RENAMEOP): Make arguments const.
* vfs.h (mc_rename): Adjust declaration.
* (mc_link): Likewise.
2002-05-13 15:39:22 +00:00
Andrew V. Samoilov
2a0dde7539 * Makefile.am (mcserv_SOURCES): Add $(top_srcdir)/src/mad.c. 2002-05-13 15:17:38 +00:00
Andrew V. Samoilov
1f557447b9 Don't check setreuid, setregid, setegid and setluid. 2002-05-11 12:12:53 +00:00
Andrew V. Samoilov
f2912b052c * samba/configure.in: Add AC_SYS_LARGEFILE.
Don't check atexit.
2002-05-11 12:03:05 +00:00
Pavel Roskin
1c61b5e0ca * samba/acconfig.h: Remove.
* Makefile.am: Remove references to samba/acconfig.h.
* samba/Makefile.in: Likewise.
* samba/aclocal.m4: Remove unused test AC_DIRENT_D_OFF.
* samba/configure.in: Add descriptions to AC_DEFINE calls.
Remove unused tests.
* samba/include/includes.h: Cleanup for the symbols that
samba/configure.in doesn't define.
* samba/lib/netmask.c: Likewise.
2002-05-01 03:17:56 +00:00
Andrew V. Samoilov
bef57252f4 * vfs.c (vfs_print_stats): s/transfered/transferred/ 2002-04-24 08:11:07 +00:00
Andrew V. Samoilov
f7c7879add * samba/lib/signal.c: Remove.
* samba/lib/debug.c (sig_usr2): Commented out.
(sig_usr1): Likewise.
* samba/lib/util_file.c (gotalarm): Commented out.
(gotalarm_sig): Likewise.
(do_file_lock): Likewise.
(file_lock): Likewise.
(file_unlock): Likewise.
(startfilepwent): Likewise.
(endfilepwent): Likewise.

* samba/Makefile.in (SAMBAFILES): Remove lib/signal.o.
* Makefile.am (SAMBA_DIST): Remove lib/signal.c.
2002-04-24 08:07:56 +00:00
Andrew V. Samoilov
a0ae265bbc * vfs.c (vfs_init) [!WITH_MCFS]: Don't register mcfs. 2002-04-19 07:25:32 +00:00
Pavel Roskin
1908a816e5 * extfs/trpm: update to work with rpm 4.x.
Reported by m.lusini@palazzochigi.it
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=62306
2002-04-12 16:27:59 +00:00
Andrew V. Samoilov
291ab2422f * cpio.c (cpio_skip_padding): Handle old ASCII format. 2002-04-12 13:16:00 +00:00
Andrew V. Samoilov
7df53e2bd2 * direntry.c (vfs_s_resolve_symlink): Comment out buggy code.
(vfs_s_retrieve_file): Set fh->handle to -1.
(vfs_s_read): Don't manipulate with FH->handle if it is -1.
(vfs_s_write): Likewise.
(vfs_s_close): Likewise.
2002-03-06 08:46:35 +00:00
Andrew V. Samoilov
0924daa8f5 * samba/lib/debug.c: Remove syslog support. 2002-02-27 14:17:45 +00:00
Pavel Roskin
eb18605ecc * Makefile.am: Don't compile mcserv if VFS is disabled.
* extfs/Makefile.am: Don't install anything if VFS is disabled.
2002-02-20 03:07:42 +00:00
Pavel Roskin
4408c4e091 * extfs.c (extfs_open): Only create a new entry if it has not
been found and O_CREAT is set.  Consider file as changed only
if it has been successfully created.
(extfs_getlocalcopy): Open file only for reading.  This prevents
marking file as changed.  Actually use the has_changed argument.
Reported by Nerijus Baliunas <nerijus@users.sourceforge.net>
2002-02-19 21:32:24 +00:00
Pavel Roskin
ceef847ec4 * extfs/lslR.in: Fix parsing of old entries (with year number).
From Daniel Skarda <0rfelyus@atrey.karlin.mff.cuni.cz>
2002-02-12 17:47:27 +00:00
Andrew V. Samoilov
1711c0ab8b * direntry.c (vfs_s_retrieve_file): Use off_t for total
and stat_size.

* vfs.c (vfs_s_resolve_symlink): Use snprintf
instead of sprintf.
(vfs_print_stats): Use off_t for have and need.  Cast
have to double to eliminate negative percent(s).
Fix print_vfs_message string formats.

* vfs.h (vfs_print_stats): Adjust declaration.

* ftpfs.c (file_store): Use off_t for total.
Fix print_vfs_message string format.
2002-02-08 09:42:38 +00:00
Andrew V. Samoilov
ccdd8e8859 * ftpfs.c (dir_load): Speed up cd_first calculation.
(ftpfs_flushdir): Resurrect.
2002-02-07 19:22:20 +00:00
Andrew V. Samoilov
0314076889 (ftpfs_chmod): Don't ignore errors. 2002-02-06 12:32:52 +00:00
Andrew V. Samoilov
e32151bb9e * ftpfs.c (dir_load): Use "LIST -la" instead of "LIST -la ."
to eliminate problem with wu-ftpd.
Close sock on error. Eliminate goto.

(reconnect): Restore cwdir if login_server fails.
2002-02-06 12:28:08 +00:00
Andrew V. Samoilov
20c71f0c51 * ftpfs.c (translate_path): Remove leading slash(es) more
carefully.
(initconn): Check getsockname() return value.
Eliminate goto.
(linear_abort): Make ipbuf const array.
2002-02-01 12:21:55 +00:00
Andrew V. Samoilov
fa2e4f6ec9 * samba/lib/charset.c (cp_850): Make const array.
(cp_932): Ditto.
(codepage_p): Likewise.
* samba/lib/debug.c (priority_map): Make const array.
* samba/lib/username.c (get_home_dir): Make pass auto.
* samba/lib/util.c (become_daemon): Commented out.
(yesno): Likewise.
2002-01-29 15:45:49 +00:00