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
1fb7d67048
* vfs.c (_vfs_get_class): Fixed segmentation fault introduced today.
2004-09-25 19:57:20 +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
Andrew V. Samoilov
e04694309c
* tar.c (tar_read_header): Fix missed *.
...
* extfs.c (extfs_readlink): Revert last change: readlink does not
append a NUL character to buf.
* ftpfs.c: Warning fix.
* vfs-impl.h (struct vfs_class.readlink): Make "size" size_t.
Adjust all callers.
2004-09-02 13:57:59 +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
64b5b8b9ee
uzip.in (mczipfs_list): Add support for negative
...
compression ratio in archive listing.
2004-09-02 00:16:33 +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
0bc44d553c
* extfs.c (struct inode): Use off_t for size.
2004-08-30 18:38:21 +00:00
Andrew V. Samoilov
562577c0d4
Use atoll()/atof() instead of atol() for st_size to show file sizes > 2G.
2004-08-30 18:36:58 +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
Roland Illig
4baefa09c2
* Code cleanup: Added const qualifier for variables and
...
function declarations where possible. No functional changes.
2004-08-29 17:15:23 +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
Andrew V. Samoilov
7680fd6884
* extfs/rpm: Modified workaround for spaces and single quotes
...
in the path name. For mcrpmfs_copyout too.
2004-08-26 18:59:26 +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
c42b447115
Using elsif instead of more expensive if.
2004-08-19 15:43:09 +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