Andrew V. Samoilov
fe0cc18988
* samba/Makefile.in: Remove BINDIR and SBINDIR.
...
* samba/param/loadparm.c: Comment out some more unused code.
2005-01-25 09:12:17 +00:00
Andrew V. Samoilov
82a3bf3d81
* samba/param/loadparm.c (print_parameter): Remove.
...
(is_default): Remove.
(dump_globals): Remove.
(dump_a_service): Remove.
(lp_dump): Remove.
(lp_dump_one): Remove.
(lp_remove_service): Remove.
(lp_copy_service): Remove.
2005-01-25 08:13:07 +00:00
Andrew V. Samoilov
981d02ba5f
* Makefile.am (SAMBA_DIST): Remove lib/genrand.c and lib/util_unistr.c.
...
* samba/Makefile.in (SAMBAFILES): Remove lib/genrand.o and
lib/util_unistr.o.
2005-01-20 16:44:27 +00:00
Andrew V. Samoilov
1ed4f8c110
* samba/libsmb/clientgen.c (cli_oem_change_password): Removed.
...
* samba/libsmb/smbencrypt.c (make_oem_passwd_hash): Removed.
* samba/lib/util_sock.c (reset_globals_after_fork): Removed.
2005-01-20 16:32:23 +00:00
Andrew V. Samoilov
d83d988c73
* samba/lib/util_file.c: Comment out all but fgets_slash().
2005-01-20 16:17:34 +00:00
Andrew V. Samoilov
4ea1aba1e0
* samba/lib/util.c (remote_machine, local_machine): Make static const
...
char * instead of fstring.
2005-01-20 11:23:07 +00:00
Andrew V. Samoilov
43414d8182
* samba/lib/util.c: Comment out some more unused functions.
...
(global_myworkgroup): Remove unused variable.
(def_finfo): Make const.
(remote_proto, remote_arch): Make const char * instead of
fstring.
* samba/libsmb/clientgen.c (interpret_long_filename): Fix
def_finfo declaration.
2005-01-20 08:57:22 +00:00
Andrew V. Samoilov
f4cb47b95d
* ftpfs.c (ftpfs_file_store): Make sure we write() all read() data.
...
Check fstat() return value.
2005-01-19 09:17:38 +00:00
Roland Illig
135d787620
* extfs/urar.in: Fixed some quoting issues.
...
Original patch by Leonard den Ottolander.
2005-01-09 16:12:39 +00:00
Andrew V. Samoilov
1735921c14
* extfs.c (struct inode): Remove unused linkflag field.
...
(extfs_internal_stat): Eliminate "inode" variable.
(extfs_fstat): Likewise.
(extfs_unlink): Fix memory leak if extfs_get_path_mangle() fails.
2004-12-29 07:32:41 +00:00
Andrew V. Samoilov
b20f6b2dea
* fish.c (fish_linear_abort): Fix bug with FISH vfs. It freezes MC on
...
transfer abort.
2004-12-28 12:25:24 +00:00
Andrew V. Samoilov
278ae44436
* extfs.c (extfs_generate_entry): Initialize inode->last_in_subdir.
...
(extfs_read_archive): Likewise. Remove unneeded test.
Fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=286990
* extfs/ulha.in (mc_lha_fs_list): Use $NF instead of $10 as filename
for permission intention.
Fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=286990
2004-12-27 12:12:31 +00:00
Roland Illig
001a6c1b90
* extfs/uzip.in: Fix handling of archive member pathnames starting
...
with "./".
2004-12-10 00:08:31 +00:00
Roland Illig
a0aef5042d
* ext.c: Fixed FIXME by passing around a reference to a VFS.
2004-12-06 23:27:23 +00:00
Andrew V. Samoilov
65f99d5493
* tar.c (tar_read_header): Skip over records containing
...
incremental tar specific info.
2004-12-01 08:43:25 +00:00
Andrew V. Samoilov
0fdf2a6e6d
* direntry.c (vfs_s_readlink): Correctly calculate link length.
2004-11-29 18:44:49 +00:00
Andrew V. Samoilov
a2bcbdb52c
* fish.c (fish_file_store): Check write() more carefully.
...
(PREFIX): Fix memory leak.
(fish_##name): Likewise.
(fish_chown): Likewise.
2004-11-29 12:45:42 +00:00
Andrew V. Samoilov
09180a901a
* direntry.c (vfs_s_open): Fix memory leak.
...
(vfs_s_retrieve_file): Check write() return more carefully.
2004-11-26 12:00:36 +00:00
Roland Illig
48690761d6
* extfs/patchfs.in: Allow extraction and deletion of patches
...
whose filenames start with "../" or "./".
2004-11-16 23:00:40 +00:00
Roland Illig
48f13535a1
* vfs.h: Changed types for mc_chmod, mc_chown, mc_mknod to mode_t,
...
uid_t, gid_t, and dev_t where appropriate.
2004-11-16 16:49:37 +00:00
Roland Illig
6bbbeb77b4
* vfs.c: Changed types for mc_chmod, mc_chown, mc_mknod to mode_t,
...
uid_t, gid_t, and dev_t where appropriate.
Patch extended by Roland Illig.
2004-11-16 16:16:08 +00:00
Roland Illig
b7fa9f0e5f
* vfs.c: fix MC_NAMEOP macro calls to use the canonicalized path.
2004-11-15 22:55:50 +00:00
Roland Illig
de3bc90f37
* audio.in (audiofs_list): Fixed quoting issue.
...
(audiofs_copyout): Likewise.
* uar.in (mcarfs_copyin): Likewise.
* uha.in (mchafs_copyout): Likewise.
* ulha.in (mc_lha_fs_run): Likewise.
2004-11-10 16:08:00 +00:00
Andrew V. Samoilov
6c2dcea9ff
* vfs.c (vfs_prefix_to_class): Avoid last class (localfs) that would
...
accept any prefix.
2004-11-08 00:04:32 +00:00
Andrew V. Samoilov
f1e93d60f7
* cpio.c (cpio_create_entry): Added initial support for the Special
...
Named Files. Needed on QNX Neutrino.
* utilvfs.c (vfs_parse_filetype): Likewise.
2004-11-03 20:38:56 +00:00
Andrew V. Samoilov
fd5d77fc7b
* cpio.c (cpio_create_entry): Added initial support for the Special
...
Named Files. Needed on QNX Neutrino.
2004-11-03 20:32:35 +00:00
Roland Illig
3c750ff024
* ftpfs.c: Add fallback to type int if socklen_t is not provided.
2004-11-02 21:53:55 +00:00
Roland Illig
406054b8e7
* ChangeLog: Change author of tarfs patch.
2004-11-01 11:47:13 +00:00
Roland Illig
75ec336c52
* tar.c (tar_read_header): Fix pathname canonicalization.
2004-11-01 07:49:36 +00:00
Andrew V. Samoilov
7febc1e97c
* extfs/iso9660.in (mcisofs_list): Fix regular expression for stripping
...
of file name. Use autotools macro for awk instead full path.
* ChangeLog: Replace my old e-mail with my new e-mail
2004-10-29 09:14:38 +00:00
Andrew V. Samoilov
b40bb2cb58
* extfs/iso9660.in (mcisofs_list): Fix stripping of file name in awk code.
2004-10-28 12:40:47 +00:00
Andrew V. Samoilov
f8223e659b
* fish.c (fish_open_archive_int): Fix missed "%s".
2004-10-28 11:24:43 +00:00
Roland Illig
744c65862e
* ftpfs.c (ftpfs_initconn): Replace int with socklen_t where
...
appropriate. (ftpfs_open_data_connection): Likewise.
2004-10-27 18:00:42 +00:00
Andrew V. Samoilov
f3ca051033
* extfs/trpm: Put -- before "$1" to stop argument parsing.
2004-10-27 14:44:31 +00:00
Andrew V. Samoilov
c1f1ce5028
* extfs/trpm: Fix quoting issues.
2004-10-27 14:03:43 +00:00
Andrew V. Samoilov
c3cd3df138
* extfs/iso9660.in: Fix quoting issues.
2004-10-27 13:01:14 +00:00
Andrew V. Samoilov
fd913b65b6
* tar.c tar_read_header(): q should not point to a static string.
...
Canonicalize q.
2004-10-27 12:44:48 +00:00
Andrew V. Samoilov
ea5c3dead6
* vfs.c (mc_def_getlocalcopy): Don't close fd -1.
...
(_vfs_get_class): Make path "char *" instead of
"const char *" because it write to path.
(vfs_get_class): Use g_strdup()/g_free() to do "pathname"
really "const char *".
2004-10-25 12:22:52 +00:00
Andrew V. Samoilov
2c8db2c43d
* smbfs.c (smbfs_open_readwrite): Comment out flags games,
...
it is cli_open() headache.
2004-10-25 08:15:19 +00:00
Roland Illig
8d69563572
* README: Add explanation for using GPL licensed code from
...
src/ in vfs.
From Leonard den Ottolander and Roland Illig.
2004-10-23 12:32:21 +00:00
Roland Illig
7c709ae396
* mcfs.c: Add INADDR_NONE definition for SunOS.
...
* mcserv.c: Likewise. (struct user_pass): Add "const" qualifier.
2004-10-21 23:07:54 +00:00
Roland Illig
036d995eea
* extfs/hp48.in: Correct quoting from last patch. Avoid a
...
subshell when none is needed.
2004-10-18 10:16:26 +00:00
Roland Illig
3b6db492a3
* extfs/audio.in: Fix even more quoting issues.
...
* extfs/hp48.in: Likewise.
Patch from q# <eth0 o2 pl>.
2004-10-18 02:20:09 +00:00
Roland Illig
e85a083b79
* extfs/uar.in: Improve filename quoting. Add error messages.
2004-10-17 22:09:18 +00:00
Roland Illig
00371ea1a9
* extfs/audio.in: Fix quoting issues.
...
From Leonard den Ottolander.
2004-10-17 19:42:20 +00:00
Roland Illig
61b4642af4
* extfs/hp48.in: Fix quoting issues.
...
From Leonard den Ottolander.
2004-10-17 19:33:55 +00:00
Andrew V. Samoilov
e4d7245a11
* undelfs.c (undelfs_open): Use g_try_malloc() instead
...
of g_malloc().
* smbfs.c (smbfs_send): Don't account negative "ret".
2004-10-16 19:19:27 +00:00
Roland Illig
689afa899a
* tar.c (tar_read_header): Fixed handling of filenames starting
...
with "./".
2004-10-16 17:17:31 +00:00
Andrew V. Samoilov
e65b13eb00
* ftpfs.c (ftpfs_linear_start): Likewise.
...
* fish.c (fish_linear_start): Likewise.
2004-10-06 21:20:17 +00:00
Andrew V. Samoilov
126fa4d83d
* cpio.c (cpio_find_head): Check mc_read() return value.
...
(cpio_read_crc_head): Handle mc_read() return value properly.
(cpio_read_oldc_head): Use union for "st" and "buf".
(cpio_read_crc_head): Likewise.
2004-10-06 21:17:30 +00:00
Andrew V. Samoilov
687f435740
* xdirentry.h (linear_start): Use off_t for offset.
2004-10-06 18:04:15 +00:00
Andrew V. Samoilov
d0aeb947b4
* utilvfs.c(vfs_split_url): Add support for '@' in username.
2004-10-05 14:23:20 +00:00
Andrew V. Samoilov
320caad2e1
* smbfs.c (smbfs_forget): Check smbfs_connections[i].cli
...
to avoid possible segmentation fault. Close
https://savannah.gnu.org/bugs/index.php?func=detailitem&item_id=8974
2004-09-28 09:30:53 +00:00
Roland Illig
7b6f1db773
* vfs.c (_vfs_get_class): Reverted my last patch because
...
Leonard reported it to make mc crash.
2004-09-26 11:06:38 +00:00
Roland Illig
6f34e18e3e
* ftpfs.c (ftpfs_find_machine): Added const qualifier.
...
* mcserv.c (do_auth): Likewise.
* utilvfs.c (is_month): Likewise. (is_time): Likewise.
(is_week): Likewise.
* vfs.c (_vfs_get_class): Added const qualifier.
(vfs_prefix_to_class): Added a string length parameter to
reduce the use of g_strdup. (vfs_split): Changes due to the
new string length parameter.
2004-09-25 14:06:27 +00:00
Andrew V. Samoilov
c060826178
* direntry.c (vfs_s_free_entry): g_free handles NULL argument too,
...
no need for the comparison.
* extfs.c (extfs_free_archive): Likewise.
(extfs_open_archive): Likewise.
(extfs_read_archive): Likewise.
(extfs_remove_entry): Likewise.
(extfs_free_entry): Likewise.
* fish.c (fish_open_archive): Likewise.
(fish_archive_same): Likewise.
* ftpfs.c (ftpfs_split_url): Likewise.
* local.c (local_closedir): Likewise.
* mcserv.c (close_handle): Likewise.
* smbfs.c (smbfs_free_bucket): Likewise.
* tar.c (tar_read_header): Likewise.
* undelfs.c (undelfs_shutdown): Likewise.
* vfs.c (vfs_shut): Likewise.
2004-09-24 23:00:18 +00:00
Roland Illig
e9fcc04816
* vfs.c (mc_open): Corrected FIXME. Now the "mode" parameter is
...
only accessed when flags contains O_CREAT.
2004-09-24 16:03:24 +00:00
Roland Illig
4bc786735e
* cpio.c: Replaced NULL with (char *) NULL. Likewise for 0, where
...
NULL was meant.
* direntry.c: Likewise.
* extfs.c: Likewise.
* fish.c: Likewise.
* ftpfs.c: Likewise.
* mcfs.c: Likewise.
* tar.c: Likewise.
* undelfs.c: Likewise.
* vfs.c: Likewise.
2004-09-24 15:08:21 +00:00
Roland Illig
60465dace3
* cpio.c (cpio_read_bin_head): Replaced GUINT16_SWAP_LE_BE with
...
GUINT16_SWAP_LE_BE_CONSTANT, because GCC-3.3 emitted a warning about
__asm__ __const__.
2004-09-23 14:58:40 +00:00
Roland Illig
a3cf3b2d5f
* direntry.c (vfs_s_new_entry): see 2004-09-19. Additionally followed the advice
...
concerning g_strdup in /HACKING.
(vfs_s_generate_entry): Likewise.
(vfs_s_find_entry_linear): Likewise.
(vfs_s_find_inode): Likewise.
* xdirentry.h: Likewise.
2004-09-22 11:28:14 +00:00
Andrew V. Samoilov
c524515308
* direnty.c (vfs_s_new_entry): Revert last changes.
...
(vfs_s_generate_entry): Likewise.
(vfs_s_find_entry_linear): Likewise.
(vfs_s_find_inode): Likewise.
* xdirentry.h: likewise.
2004-09-22 05:50:45 +00:00
Roland Illig
a9f9db7b6b
* direntry.c: Added const qualifier to function declarations and
...
variables. Introduced local modifiable strings where necessary.
* xdirentry.h: likewise.
2004-09-19 16:07:17 +00:00
Roland Illig
8335c0fab3
* smbfs.c (smbfs_init): Added a cast to avoid compiler warning.
2004-09-18 14:41:42 +00:00
Andrew V. Samoilov
312da833ff
* extfs.c (extfs_open_archive): Fixes bug in extfs, which showed
...
'Inconsistent extfs archive' on small archives and diffs.
QNX 6.x (QNX Neutrino) specific
2004-09-17 11:44:43 +00:00
Andrew V. Samoilov
259bc3957b
Typos
2004-09-10 09:53:15 +00:00
Andrew V. Samoilov
4d149bb08e
* fish_file_store): Call get_interrupt instead of testing
...
whether got_interrupt is non-NULL (it always is).
2004-09-09 13:26:02 +00:00
Andrew V. Samoilov
c9f834b501
* vfs.c (vfs_cmp_handle): Fixing warnings on on 64-bit
...
platforms.
(vfs_op):Likewise.
(vfs_info):Likewise.
(vfs_free_handle):Likewise.
* extfs/rpm (mcrpmfs_run): Quote parameters to calls
to system/open that spawn a shell.
* direntry.c (vfs_s_find_entry_tree): Make "size"
size_t.
2004-09-03 21:23:05 +00:00
Andrew V. Samoilov
d99d02c743
* mcfs.c (mcfs_readlink): Revert last change: readlink does not
...
append a NUL character to buf. Fix compilation.
2004-09-02 14:34:58 +00:00
Andrew V. Samoilov
fc3bf048e9
* local.c (local_readlink): Make "size" size_t.
...
* direntry.c (vfs_s_readlink): Revert last changes. Make "size"
size_t.
* sfs.c (sfs_readlink): Reformat function.
* smbfs.c (smbfs_readlink): Reformat function.
2004-09-02 14:12:21 +00:00
Roland Illig
c44a4a4c31
* mcfs.c (mcfs_readlink): Fixed syntax error (usage of
...
undeclared variable). Simplified string copying.
2004-09-02 13:26:28 +00:00
Andrew V. Samoilov
ce4e912cbf
* extfs/uzip.in (mczipfs_list): Add support for negative
...
compression ratio in archive listing.
2004-09-02 00:15:59 +00:00
Andrew V. Samoilov
15c6e5cae6
* direntry.c (vfs_s_readlink): Use g_strlcpy instead strncpy.
...
* ftpfs.c (ftpfs_get_reply): Use g_strlcpy instead strncpy.
* extfs.c (extfs_readlink): Fix return value. Use g_strlcpy
instead strncpy.
* mcfs.c (mcfs_readlink): Fix return value. Use g_strlcpy
instead strncpy.
* tar.c (tar_read_header): Add additional check for consistency.
Fix memory leak.
* cpio.c (cpio_defer_find): Remove recursion.
(cpio_free_archive): Fix memory leak.
(cpio_read_bin_head): Use union for simplicity using of header
structure. Add additional check for consistency.
(cpio_read_oldc_head): Add additional check for consistency.
2004-09-02 00:09:02 +00:00
Andrew V. Samoilov
71ffc327b5
* fish.c (fish_get_reply): Use g_strlcpy instead
...
sequence strncpy(), name[len] = '\0'
* vfs.c (mc_get_current_wd): Likewise.
2004-09-01 18:39:48 +00:00
Andrew V. Samoilov
784158a520
E-mail fixes
2004-08-31 14:16:16 +00:00
Andrew V. Samoilov
d16aa745e8
* utilvfs.c (vfs_parse_ls_lga): Use atoll()/atof() instead of atol()
...
for st_size to show file sizes > 2G.
* fish.c (fish_dir_load): Likewise.
* extfs.c (struct inode): Use off_t for size.
2004-08-30 18:36:22 +00:00
Roland Illig
65ffa864b8
* Code cleanup: Added const qualifier for variables and
...
function declarations where possible. No functional changes.
2004-08-29 17:24:12 +00:00
Andrew V. Samoilov
3c4b2f8ff4
Fixed changelog entry - use parenthesis for explicit function name
2004-08-26 19:56:14 +00:00
Andrew V. Samoilov
81e4bdfe72
smbfs.c (smbfs_open_readwrite): Implement O_APPEND via smbfs_lseek().
2004-08-26 19:51:38 +00:00
Roland Illig
f78fd52bfe
* undelfs.c (undelfs_lstat): Adjusted declaration.
...
(undelfs_stat): Defined to undelfs_lstat.
From Andrew V. Samoilov
2004-08-26 09:17:38 +00:00
Andrew V. Samoilov
a2d1d4e8dc
* direntry.c: Use g_strlcpy instead strncpy for fix buffer overrun
...
* extfs.c: Likewise.
* mcfs.c: Likewise.
* smbfs.c: Likewise.
* utilvfs.c: Likewise.
2004-08-26 08:47:50 +00:00
Roland Illig
c64cec997a
* vfs.c (mc_chdir): Fixed memory leak.
2004-08-26 00:17:36 +00:00
Andrew V. Samoilov
201c30624e
* vfs/extfs/a.in: Quote parameters to calls to system/open that spawn a shell.
...
* vfs/extfs/apt.in: Likewise.
* vfs/extfs/debd.in: Likewise.
* vfs/extfs/dpkg.in: Likewise.
* vfs/extfs/deba.in: Clean up earlier fixes to quotation of parameters.
* vfs/extfs/deb.in: Likewise.
2004-08-24 19:51:41 +00:00
Andrew V. Samoilov
acc5f18cfa
Change e-mail for Leonard den Ottolander
2004-08-24 19:27:01 +00:00
Roland Illig
83c07852e9
* extfs.c (extfs_internal_stat): Fixed memory leaks introduced
...
by my change from 2004-08-16. (extfs_unlink): likewise.
* ftpfs.c (ftpfs_send_command): likewise.
2004-08-24 15:56:24 +00:00
Roland Illig
6bd2914cc1
Added missing ChangeLog entries from 2004-08-16.
2004-08-24 14:01:12 +00:00
Andrew V. Samoilov
76a8893a53
* extfs/urar.in: Fix non-POSIX constructs.
2004-08-22 22:47:15 +00:00
Andrew V. Samoilov
dbedd885e6
* extfs/rpm: Modified workaround for spaces and single quotes in the path name.
2004-08-22 22:38:49 +00:00
Andrew V. Samoilov
8a410cf065
* extfs/rpm: Don't show cpio contents in main rpm view.
...
Also avoids copying files from main view instead of from
inside CONTENTS.cpio. The former is painfully slow as the whole
file is rpm2cpio'd on each copy.
2004-08-22 21:43:18 +00:00
Andrew V. Samoilov
b2706a92c6
Anti-spam protection e-mail address for Leonard den Ottolander
2004-08-22 12:02:14 +00:00
Andrew V. Samoilov
6478efd184
* samba/lib/util.c (tmpdir): Use MC_TMPDIR environment variable.
...
(automount_lookup): More secure code.
2004-08-20 21:05:02 +00:00
Roland Illig
a37fdaca96
* extfs/deb.in (mcdebfs_list): Separated the use of quoted and unquoted variables. (mcdebfs_copyout): likewise. (mcdebfs_run): likewise. From Leonard den Ottolander <leonard@den.ottolander.nl>
2004-08-19 17:37:01 +00:00
Roland Illig
2c4ca680bb
* extfs/deba.in (list): Separated the use of quoted and unquoted variables. (copyout): likewise. (run): likewise. From Leonard den Ottolander <leonard@den.ottolander.nl>
2004-08-19 17:32:31 +00:00
Roland Illig
060898b092
* extfs/deba.in (bt): deleted. (ft): deleted. (fm): deleted. (ls): deleted. (list): correctly quoted shell command arguments. (copyout): likewise. (run): likewise. From Leonard den Ottolander <leonard@den.ottolander.nl>
2004-08-19 15:53:13 +00:00
Roland Illig
388442cf0c
smbfs.c: Modified smbfs_convert_path based on a patch sent by Andrew V. Samoilov. Adjusted the calls to smbfs_convert_path. Simplified string handling by using free_after from src/util.h. Fixed one memory leak and one accidental modification.
2004-08-19 12:05:54 +00:00
Andrew V. Samoilov
b328811d2a
* extfs/rpm: Command line parameters fix for UPGRADE.
...
Fix mcrpmfs_copyout for INFO/OBSOLETES and INFO/LICENSE
From Leonard den Ottolander <leonard@den.ottolander.nl>
2004-08-18 21:18:07 +00:00
Andrew V. Samoilov
b93ffeaa80
Security fix patch. Fix insecure temporary file and directory creations. (CAN-2004-0231).
2004-08-17 08:24:59 +00:00
Andrew V. Samoilov
e9be8219a0
* sfs.c (sfs_init): Fix possible buffer overflows for invalid sfs.ini.
2004-08-14 10:56:09 +00:00
Andrew V. Samoilov
5b290ada65
* extfs.c (extfs_init): Fix possible off-by-one buffer underflow
...
for empty lines in extfs.ini.
2004-08-14 10:51:00 +00:00
Andrew V. Samoilov
622e6a368e
Fix missed name_status() function name.
2004-08-09 14:09:52 +00:00
Pavel Roskin
8ab694ba2d
* tar.c: Eliminate struct hstat, use stack arguments instead.
2004-06-14 16:04:07 +00:00
Andrew V. Samoilov
b55db9788b
* samba/lib/debug.c (Debug1): Don't try to open/create logfile if debugf is empty string.
2004-03-07 06:40:28 +00:00
Andrew V. Samoilov
722f4e684a
* utilvfs.c (vfs_parse_ls_lga): Handle device without whitespace(s)
...
between major and minor.
2004-03-07 06:17:12 +00:00
Andrew V. Samoilov
02db8a9660
* direntry.c (vfs_s_resolve_symlink): Check vfs_s_fullpath()
...
return value to avoid NULL dereference.
Reported by wwp <subscript@free.fr>.
2004-03-07 06:12:49 +00:00
Andrew V. Samoilov
2f7bbc2c31
* vfs.c (mc_def_ungetlocalcopy): Fix missed "%s".
...
* utilvfs.c (vfs_parse_ls_lga): Likewise.
2004-03-07 06:07:43 +00:00
Pavel Roskin
05e6a61834
* smbfs.c (smbfs_reconnect): Revert changes in a translated
...
message.
2004-01-28 00:01:30 +00:00
Pavel Roskin
79b4c398de
* extfs/rpm: Workaround for spaces and single quotes in the path
...
name.
2004-01-24 00:48:46 +00:00
Pavel Roskin
a8261b28d6
* mcserv.c: Use HAVE_CRYPT instead of USE_CRYPT. Remove
...
references to HAVE_LIBCRYPT and HAVE_LIBCRYPT_I. Reported by
Christian Laubscher <christian.laubscher@tiscalinet.ch>
2004-01-22 08:44:20 +00:00
Pavel Roskin
8db3838b57
* samba/configure.in: Rename to ...
...
* samba/configure.ac: ... this. Adjust dependencies.
2004-01-22 06:30:30 +00:00
Pavel Roskin
fe12438ed6
* fish.c (fish_open_archive_int): Save some stack and place -C
...
flag before host.
2003-12-06 04:24:56 +00:00
Pavel Roskin
e9827066d1
* undelfs.c: Use ext2fs/ext2_fs.h instead of linux/ext2_fs.h
...
when possible.
2003-11-28 06:20:57 +00:00
Pavel Roskin
fc9bf6040f
* gc.c (vfs_ncs_getid): Merge with vfs_getid().
2003-11-26 21:25:30 +00:00
Pavel Roskin
6ffd35bf07
* gc.c: Eliminate all code for timestamping parent filesystems.
...
It's broken and undocumented. Adjust all dependencies.
2003-11-26 21:10:42 +00:00
Pavel Roskin
8ed2cc4594
* direntry.c (vfs_s_resolve_symlink): Eliminate
...
g_strdup_printf().
(vfs_s_fullpath): Likewise.
2003-11-24 20:30:30 +00:00
Pavel Roskin
ffb686bfa9
* ftpfs.c (ftpfs_login_server): Explicit password should have
...
priority over the netrc password and the anonymous password.
Reported by Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz>
2003-11-21 06:57:37 +00:00
Pavel Roskin
3ba446981a
Typo fix.
2003-11-20 18:40:11 +00:00
Pavel Roskin
2eeab44b93
* undelfs.c (undelfs_loaddel): Use g_try_malloc()/g_try_relloc()
...
since we want to recover and not abort the program if we don't
have enough memory.
(com_err): Fix implementation.
2003-11-14 21:36:35 +00:00
Pavel Roskin
8147825da3
Typo fixes from Andrew.
2003-11-14 16:55:35 +00:00
Pavel Roskin
54b8c9aaad
* vfs.c (vfs_split): Deconstify.
...
* direntry.c (vfs_s_get_path_mangle): Likewise. "mangle" is in
the name for a reason. Use vfs_s_get_path() instead where the
path should be preserved.
* extfs.c (extfs_get_path_mangle): Likewise.
* sfs.c (sfs_vfmake): Protect against changes in vfs_split().
2003-11-14 08:25:50 +00:00
Pavel Roskin
30c4bd1b6d
* vfs.h: Constify chdir() and opendir() methods. Adjust all
...
dependencies.
* vfs.c (mc_chdir): Constify, eliminate protection against
broken implementations of chdir() method.
(mc_opendir): Constify.
2003-11-13 08:29:37 +00:00
Pavel Roskin
4b5a2a0b62
* direntry.c (vfs_s_stamp_me): Generalize and move ...
...
* gc.c (vfs_stamp_create): ... here. Use whenever possible.
2003-11-13 08:03:03 +00:00
Pavel Roskin
de12104436
* gc.c: Use NULL instead of -1 for empty vfsid. Adjust all
...
dependencies.
* undelfs.c (undelfs_get_path): Don't shadow static ext2_fname.
(undelfs_getid): Likewise. Use fs for non-empty vfsid.
2003-11-12 23:00:16 +00:00
Pavel Roskin
d2e2f5c544
* cpio.c (cpio_create_entry): Fix possible buffer underflow
...
and memory leak.
2003-11-12 17:10:48 +00:00
Pavel Roskin
4eab382dba
* gc.c: Make getid(), nothingisopen() and free() methods
...
optional. Eliminate trivial implementations.
(vfs_getid): New function - safe wrapper around getid(). Use
it everywhere.
(vfs_ncs_getid): Remove dead code, inprove readability.
2003-11-08 23:53:00 +00:00
Pavel Roskin
b33f2cbb47
* vfs.c: Split garbage collection code into ...
...
* gc.c: ... this.
* vfs.h: Corresponding code moved ...
* gc.h: ... here.
* Makefile.am: Adjustments for the above.
2003-11-07 23:43:55 +00:00
Pavel Roskin
106a90ae99
* vfs.c: Eliminate MC_OP. Reorder other MC_* macros for
...
readability.
2003-11-05 06:34:20 +00:00
Pavel Roskin
0318ed5d0b
* vfs.c: Move all parsing code, vfs_die() and vfs_get_password()
...
to utilvfs.c, vfs_print_stats() to direntry.c.
* utilvfs.c (vfs_parse_ls_lga): Disable caching current date,
it's done incorrectly.
2003-11-05 06:08:16 +00:00
Pavel Roskin
c468c1b6e9
* vfs.c: Allocate handles dynamically.
...
(get_bucket): Rewrite as vfs_new_handle().
(vfs_op): Make a function.
(vfs_info): Likewise.
(vfs_free_bucket): Replace with vfs_free_handle().
(mc_readdir): Expand, eliminate MC_DIROP.
2003-11-05 00:12:25 +00:00
Pavel Roskin
f613c51eb5
* HACKING: New file - technical documentation for VFS.
...
* Makefile.am: Distribute it.
2003-10-30 06:00:41 +00:00
Pavel Roskin
24dd87b714
* vfs.c (vfs_rmstamp): Rescan the tree after the parents have
...
been removed. Otherwise using old data causes data corruption
in some combinations (e.g. extfs inside tatfs).
2003-10-30 05:58:06 +00:00
Pavel Roskin
cb2aaf4c16
* extfs.c: Remove current_dir field, its role was purely
...
decorative. Rename names starting with underscore.
2003-10-29 23:16:31 +00:00
Pavel Roskin
f2550b08ee
* extfs.h: Merge ...
...
* extfs.c: ... here.
* Makefile.am: Remove extfs.h.
2003-10-29 23:05:27 +00:00
Pavel Roskin
cea13079c3
* ftpfs.c: Use HAVE_STRUCT_LINGER_L_LINGER instead of
...
HAVE_STRUCT_LINGER.
2003-10-29 17:23:35 +00:00
Pavel Roskin
6b4f397f5b
* Makefile.am: Compile utilvfs.c even without USE_VFS_NET.
...
* utilvfs.c (vfs_split_url): Only compile with USE_NETCODE
defined.
2003-10-29 07:19:25 +00:00
Pavel Roskin
cd644b527c
* fish.c (fish_fh_open): Use vfs_mkstemps() for write buffers as
...
well, since the file can be reopened for reading later.
* ftpfs.c (ftpfs_fh_open): Likewise.
2003-10-29 01:35:36 +00:00
Pavel Roskin
edce41facd
* utilvfs.c (vfs_mkstemps): New function - create temporary file
...
with the name resembling the original, but safe for scripts.
* direntry.c (vfs_s_open): Use it.
(vfs_s_retrieve_file): Likewise.
* extfs.c (extfs_open): Likewise.
* sfs.c (sfs_redirect): Likewise.
2003-10-29 00:50:36 +00:00
Pavel Roskin
77bcdc8127
* vfs.c (mc_ungetlocalcopy): Free local path here, not in class
...
implementations.
* vfs.h (struct vfs_s_class): Constify "local" argument for
ungetlocalcopy. Adjust all implementations.
2003-10-28 21:52:06 +00:00
Pavel Roskin
67cd859ea3
* direntry.c (vfs_s_init_class): Use our getlocalcopy for remote
...
filesystems that cache files, not for archives.
(vfs_s_getlocalcopy): Corresponding changes.
2003-10-28 08:20:30 +00:00
Pavel Roskin
8e3a0c9d65
* direntry.c (vfs_s_init_class): Improve interface to allow more
...
code reuse. Change all callers.
(vfs_s_getlocalcopy): New implementation. Don't use
mc_def_getlocalcopy(). Use vfs_s_open() to create local copy.
(vfs_s_ungetlocalcopy): New function.
* xdirentry.h: Add new field "flags" to struct vfs_s_subclass.
* extfs.c (extfs_ungetlocalcopy): Don't use
mc_def_ungetlocalcopy() in the dead branch.
* vfs.c (mc_def_getlocalcopy): Make static.
(mc_def_ungetlocalcopy): Likewise.
2003-10-28 07:09:39 +00:00
Pavel Roskin
7d16d65e35
* vfs.h: Constify some arguments for many functions.
...
* xdirentry.h: Likewise. Adjust all dependencies.
2003-10-28 02:10:33 +00:00
Pavel Roskin
5bc20fd294
* *.c: Rename functions that don't have an a prefix indicating
...
what file they are defined in. This simplifies debugging.
2003-10-28 00:57:02 +00:00
Pavel Roskin
520f6ddb6c
* vfs.c (mc_def_getlocalcopy): Use O_LINEAR when retrieving the
...
remote file. This avoids an extra temporary file.
2003-10-27 21:55:06 +00:00
Pavel Roskin
4ee3f26133
* cpio.c (cpio_ungetlocalcopy): Remove.
...
* tar.c (tar_ungetlocalcopy): Likewise.
* vfs.c (mc_def_ungetlocalcopy): Add support for read-only
filesystems.
2003-10-27 21:01:00 +00:00
Pavel Roskin
bc455d5840
* direntry.c (vfs_s_find_inode): Only allow search from root.
...
Change second argument to superblock to prevent abuse.
2003-10-27 03:09:40 +00:00
Pavel Roskin
ad670bade6
* direntry.c (vfs_s_find_entry_tree): Eliminate buffer of fixed
...
size. Don't prepare path for vfs_s_resolve_symlink().
(vfs_s_resolve_symlink): Remove unused argument "path".
2003-10-27 02:54:59 +00:00
Pavel Roskin
cc09ee51f1
Typo fixes.
2003-10-27 01:55:50 +00:00
Pavel Roskin
511321bcfd
* direntry.c (vfs_s_add_dots): Remove. Fix all callers.
...
(vfs_s_free_inode): Remove support for "." and ".." entries.
* ftpfs.c (dir_load): Likewise.
Support for "." and ".." entries was a hack that could make the
cache non-traversible from inodes to the root and cause infinite
loop in vfs_s_fullpath().
Reported by Frédéric L. W. Meunier <lists1@pervalidus.net>
2003-10-27 01:26:18 +00:00
Pavel Roskin
7cc31809be
* tar.h: Merge into tar.c, as it doesn't provide any external
...
interface.
* Makefile.am: Remove tar.h.
2003-10-26 03:34:42 +00:00
Pavel Roskin
a828849d50
* vfs.h: Remove redundant declaration of init_localfs().
2003-10-26 01:51:28 +00:00
Pavel Roskin
5a0b2b0806
* mcserv.c: Don't use HAVE_CRYPT from extraonf.h.
...
* samba/include/includes.h: Likewise.
2003-10-25 22:37:08 +00:00
Pavel Roskin
be3fa535ba
* ftpfs.c: Remove the rest of source routing code.
...
* xdirentry.h: Likewise.
2003-10-24 20:08:38 +00:00