Pavel Tsekov
44becc0a7d
* vfs/sfs.c (sfs_uptodate): Eliminate - it is a noop.
...
Remove all references to `sfs_uptodate'.
2006-04-04 09:26:13 +00:00
Pavel Tsekov
294e05e70e
* vfs/fish.c (fish_file_store): Do not create the target file before
...
determining which method (`head' or `dd') to use.
Do not use `head' to transfer data when resuming a file transfer - it is
not reliable enough.
2006-03-31 14:29:37 +00:00
Pavel Tsekov
407497fd43
* vfs/fish.c (fish_file_store): Improve the upload speed by using the
...
`head' utility when possible. Fallback to a new improved `dd' method
if `head' is not availaible or just stupid.
2006-03-30 14:39:33 +00:00
Pavel Tsekov
52a724a2c8
* vfs/direntry.c (vfs_s_inode_from_path): Revert last change.
2006-03-30 13:04:50 +00:00
Pavel Tsekov
c585dcb01a
* vfs/extfs.c (extfs_done): Free all live archives.
...
Fixes savannah bug #13953 .
(extfs_free_entries): Comment out - it is unused.
(extfs_free_archive): Use extfs_free_entry () instead of
extfs_free_entries ().
(extfs_free): Reflect the changes above.
Simplify.
2006-03-23 15:00:50 +00:00
Pavel Tsekov
06b721a44c
* vfs/direntry.c (vfs_s_inode_from_path): Do not give up if a given path
...
does not exist in the directory cache. In such scenario use the underlying
vfs to determine whether the path exists or not.
2006-03-23 12:36:10 +00:00
Leonard den Ottolander
25002a0274
* extfs/deb.in (mcdebfs_list): Output three date fields, not four.
2006-03-19 17:41:11 +00:00
Leonard den Ottolander
7d7ea8c067
* extfs/deb.in: Patrik Rak is mentioned in the header, no need to
...
specify his code blocks in the comments.
2006-03-19 17:15:55 +00:00
Leonard den Ottolander
866d39e32c
* extfs/uar.in (mcarfs_list): Parse date reported by ar back to three
...
fields as vfs_parse_filedate() only expects three date fields now.
2006-03-18 12:56:50 +00:00
Pavel Tsekov
049ed167b6
* vfs/ftpfs.c (ftpfs_dir_load): When retrieving the directory listing by
...
using the LIST command _only_ and the output of the command is empty, retry
the operation by sending a CWD command followed by a LIST command.
2006-03-08 14:54:11 +00:00
Pavel Tsekov
ab02769f31
* vfs/ftpfs.c (ftpfs_dir_load): Remove redundant call to
...
`ftpfs_translate_path'.
2006-03-06 15:27:45 +00:00
Pavel Roskin
28157ca499
* Makefile.am: Add fish.h.
2006-02-23 16:00:13 +00:00
Pavel Tsekov
264697b010
* vfs/fish.h: New file.
...
* vfs/fish.c (fish_directory_timeout): Define new global variable.
(FISH_DIRECTORY_TIMEOUT): Eliminate - this macro is not used
anywhere.
(fish_dir_load): Use `fish_directory_timeout' to calculate the
expiration time of a newly created directory entries.
* src/setup.c [USE_NETCODE]: Include fish.h .
(int_options) [USE_NETCODE]: Add support for user configurable
expiration timeout of FISH directory cache entries.
* doc/mc.1.in: Document `fish_directory_timeout'.
2006-02-23 15:32:18 +00:00
Pavel Tsekov
c9f1b97869
* vfs/ftpfs.c (ftpfs_dir_uptodate): Remove.
...
(init_ftpfs): Adjust the code to reflect the removal of
`ftpfs_dir_uptodate'.
* vfs/fish.c (fish_dir_uptodate): Remove.
(init_fish): Adjust the code to reflect the removal of
`fish_dir_uptodate'.
* vfs/direntry.c (vfs_s_dir_uptodate): New function.
(vfs_s_init_class): Initialize the `dir_uptodate' field of
vfs_s_subclass.
2006-02-23 10:46:29 +00:00
Pavel Tsekov
18e595058f
* vfs/ftpfs.c (ftpfs_dir_load): Do not return error on empty directory
...
listings if the ftp server indicates, that the LIST command completed
successfully.
2006-02-17 14:37:29 +00:00
Pavel Tsekov
115ef55682
* vfs/ftpfs.c (ftpfs_open_socket): Let the user interrupt ftpfs in
...
hostname lookup / connection state.
2006-02-05 11:18:12 +00:00
Roland Illig
2390300034
* fish.c: Replaced the printf-like attribute with __printf__,
...
since GNU gettext defines a macro printf on some systems.
* ftpfs.c: Likewise.
2006-02-03 14:45:44 +00:00
Pavel Tsekov
da3b1863ab
* direntry.c (vfs_s_open): Be less restrictive when O_LINEAR is specified
...
and `linear_start' is not implemented.
2006-01-28 15:47:02 +00:00
Roland Illig
7b9f0a4f96
* mcserv.c: Made mcserv.c work on NetBSD 3.0/i386 with GNU
...
gettext 0.14 installed.
2006-01-27 23:27:35 +00:00
Leonard den Ottolander
8dfd1a2e4d
utilvfs.c: Do not parse more than 3 date elements to avoid file name parsing errors.
2006-01-27 22:20:23 +00:00
Leonard den Ottolander
a03c48ffa4
fish.c, xdirentry.h: Fix 2 GB file size limit for fish.
2006-01-27 22:16:45 +00:00
Roland Illig
b2e8006823
* utilvfs.c (is_year): The range of valid year numbers is
...
restricted to 1970 .. 2015 to reduce the number of parsing
errors.
2006-01-27 22:06:07 +00:00
Pavel Tsekov
c8494f41bb
* xdirentry.h (LS_LINEAR_PREOPEN): New macro definition.
...
* direntry.c (vfs_s_open): When opening a file in linear mode,
defer the actual open operation until the first read call.
(vfs_s_read): When reading in linear mode, open the file
on the first read operation.
(vfs_s_lseek): When in linear mode, make sure that seeking is
allowed only before the first read operation.
* ftpfs.c (ftpfs_ctl): Make the code aware of LS_LINEAR_PREOPEN.
* fish.c (fish_ctl): Likewise.
2006-01-25 14:04:27 +00:00
Pavel Tsekov
9d6d306127
* ftpfs.c (ftpfs_dir_load): Fix a bad ERRNOR call.
2006-01-24 15:44:21 +00:00
Pavel Tsekov
8de760e37b
* ftpfs.c (ftpfs_first_cd_then_ls): Enable this functionality by default.
2006-01-23 09:52:07 +00:00
Pavel Tsekov
465972e0b9
* tar.c (LF_EXTHDR): New macro definition.
...
(LF_GLOBAL_EXTHDR): Likewise.
(tar_read_header): Skip over pax extended header and global extended
header records.
2006-01-18 15:14:56 +00:00
Roland Illig
114b2c1715
Added some comments.
2005-11-15 22:27:45 +00:00
Pavel Roskin
76d78fb47c
* samba/lib/netmask.c: Include <stdlib.h> for exit() and
...
<string.h> for memcpy().
2005-11-15 21:32:07 +00:00
Pavel Roskin
89eb1e232b
* samba/lib/netmask.c: Add get_netmask() prototype for the dummy
...
version.
2005-11-11 06:19:08 +00:00
Pavel Roskin
9c11cf292f
* samba/lib/util_sock.c: Fix warnings on 64-bit systems.
2005-11-11 02:52:41 +00:00
Pavel Roskin
528e77efc0
* mcserv.c (get_client): Fix gcc 4 warning.
2005-11-11 02:31:46 +00:00
Pavel Roskin
ebe155fc92
* smbfs.c: Remove redundant ipzero declaration.
2005-11-11 02:22:02 +00:00
Leonard den Ottolander
0c2b46643d
* fish.c (fish_dir_load, fish_linear_start): Get numerical gid/uids from ls to
...
avoid wrong parsing of user/group names containging white space.
2005-10-19 11:34:56 +00:00
Leonard den Ottolander
149afcc3b7
* vfs/ftpfs.c (ftpfs_command): Fix "Nowhere to fallback to" warning caused
...
by fallback to active mode after inactivity.
2005-10-09 21:25:29 +00:00
Roland Illig
4972324b16
* extfs/iso9660.in: Ignore error messages from locale(1), as it
...
does not exist on OpenBSD. Reported by q# on mc-devel.
2005-09-26 15:07:00 +00:00
Roland Illig
290b842c86
* utilvfs.h (vfs_parse_filetype, vfs_parse_fileperms,
...
vfs_parse_filemode): Rewrote the functions to parse Unix file
modes.
* utilvfs.c: Likewise.
* fish.c: Using the new parsing functions.
2005-09-26 11:10:24 +00:00
Andrew V. Samoilov
8491ac0c7d
* samba/lib/util.c (tab_depth): Remove.
...
* samba/include/byteorder.h: Remove all macroces with tab_depth().
* vfs/samba/lib/util_sock.c: Comment out read_smb_length(),
send_null_session_msg(), send_one_packet(), send_smd()
and read_smb_length().
* vfs/samba/libsmb/nmblib.c: Comment out copy_nmb_packet(),
copy_dgram_packet(), copy_packet() and nmb_name_equal().
2005-09-15 12:07:17 +00:00
Roland Illig
5ddb6be28e
* samba/*: Added many const qualifiers to properly fix the
...
warnings emitted by gcc with -Wwrite-strings.
* smbfs.c: Likewise.
2005-09-07 07:33:39 +00:00
Roland Illig
2841a5087f
Added const qualifiers.
2005-09-05 03:26:48 +00:00
Roland Illig
040e26b5eb
* samba/: Added a const qualifier to setup_logging().
...
* smbfs.c: Removed dbghdr_wrapper. Removed all const_cast
instances.
2005-09-05 03:17:03 +00:00
Roland Illig
7e7b81b73e
* direntry.c: Added const qualifiers to work around gcc
...
warnings.
* extfs.c: Likewise.
* fish.c: Likewise.
* ftpfs.c: Likewise.
* sfs.c: Likewise.
* xdirentry.h: Likewise.
2005-09-05 00:52:56 +00:00
Roland Illig
b4479c533d
* direntry.c: Removed an unused variable.
2005-08-15 21:25:02 +00:00
Roland Illig
b5e201a74a
Replaced a literal 0 with a "typed" 0, namely NETRC_NONE.
2005-08-15 21:22:30 +00:00
Roland Illig
7c1b001728
* vfs-impl.h (union vfs_dirent): Using the offsetof macro
...
instead of null pointer arithmethics.
2005-08-15 21:13:53 +00:00
Roland Illig
e132a00192
Added const qualifiers and type casts for <ctype.h> functions.
2005-07-31 21:09:29 +00:00
Roland Illig
ee4987bb5d
* samba: Added some const qualifiers to reduce the number of gcc
...
warnings.
2005-07-31 21:01:26 +00:00
Pavel Roskin
3b40737834
* extfs/urar.in: Remove month translation and year windowing -
...
they are better handled by mc. Use more robust date format.
Set locale to C.
2005-07-25 21:51:51 +00:00
Pavel Roskin
271a56e3f8
* extfs/uzip.in: Preserve seconds. Avoid month translation - it
...
only slows down processing.
2005-07-25 20:24:01 +00:00
Pavel Roskin
23c29ab03a
* extfs/ualz.in: Fix compatibility with unalz 0.51.
2005-07-25 16:19:53 +00:00
Pavel Roskin
a0c56a1a7d
* extfs/ualz.in: Anticipate eventual posixification of the date
...
format.
2005-07-22 21:54:00 +00:00