Commit Graph

1033 Commits

Author SHA1 Message Date
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
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
Roland Illig
cdc35124d3 Only use this file if USE_VFS is defined. 2004-08-17 13:00:58 +00:00
Roland Illig
8a0b96bd27 Made name and prefix of vfs_class constant. 2004-08-17 11:19:31 +00:00
Roland Illig
94d1dea0b9 Added more const-ness. Avoided name collisions by shadowing. 2004-08-17 11:18:47 +00:00
Roland Illig
cf1c61cd2a Added more const-ness. Avoided name collision for netrc. 2004-08-17 11:17:02 +00:00
Roland Illig
c0a173bf7b Added more const-ness. 2004-08-17 11:14:51 +00:00
Roland Illig
f608bd21f8 Renamed any variable stat into st. 2004-08-17 11:13:55 +00:00
Roland Illig
5689ee5699 Added more const-ness to variables. 2004-08-17 10:26:44 +00:00
Roland Illig
370b29d6f6 Removed duplicate declaration of vfs_file_is_local. 2004-08-17 10:19:44 +00:00
Roland Illig
5a345d5e4d Const-ified the vfs_find[ug]id functions. 2004-08-17 09:48:15 +00:00
Roland Illig
acd63d7374 Moved the declaration of the init_*fs functions into specialized headers (*fs.h or vfs-impl.h). 2004-08-17 09:17:43 +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
Roland Illig
a640e5a8e7 Proper handling of getopt.h and PAM. 2004-08-17 00:48:53 +00:00
Roland Illig
8a2b1f0c31 Added vfs-impl.h to the list of headers. 2004-08-17 00:48:28 +00:00
Roland Illig
1105b8e941 Splittet the vfs.h header into a user's part (vfs.h) and an implementor's part (vfs-impl.h). 2004-08-16 23:25:49 +00:00
Roland Illig
34a8088483 Splittet the vfs.h header into a user's part (vfs.h) and an implementor's part (vfs-impl.h). 2004-08-16 23:18:42 +00:00
Roland Illig
3cf53917e1 Const-ified the mc_* functions. 2004-08-16 22:40:31 +00:00
Roland Illig
b17b1ac213 Const-ified the rest of the vfs_class methods. 2004-08-16 22:15:28 +00:00
Roland Illig
e0bf99d516 Made the path argument to vfs->{chmod,chown,utime} constant. 2004-08-16 21:36:39 +00:00
Roland Illig
dc70d154db Made the buf argument to vfs->write constant. 2004-08-16 21:16:54 +00:00
Roland Illig
789e5e9bcb Made the path argument to vfs->[l]stat constant. Created a new memory leak, which will be fixed soon. 2004-08-16 20:26:42 +00:00
Roland Illig
b472c18c79 Made the patch argument to vfs->which const. 2004-08-16 19:47:21 +00:00
Roland Illig
a50890b1a4 Added missing function prototypes. Added const-ness. Fixed an "empty-then-clause" bug. 2004-08-16 16:59:43 +00:00
Roland Illig
c5694db1ad Replaced "-1" by INADDR_NONE. 2004-08-16 16:58:18 +00:00
Roland Illig
1a62b0a598 Added explicit type casting and replaced "-1" by INADDR_NONE. 2004-08-16 16:58:00 +00:00
Roland Illig
db3f21b702 Added a typedef for a function. Added more const-ness to the function arguments. 2004-08-16 16:34:11 +00:00
Roland Illig
8aeea3256f Added more const-ness to the function arguments. 2004-08-16 15:45:05 +00:00
Roland Illig
a0616a76be mc_ungetlocalcopy does not free its second argument anymore. 2004-08-16 15:18:18 +00:00
Roland Illig
f17c1f291c mc_ungetlocalcopy does not free its second argument anymore. 2004-08-16 15:18:17 +00:00
Roland Illig
8e36bb7fe0 Marked the places where the arguments should be passed as "const". 2004-08-16 09:37:00 +00:00
Roland Illig
6d483846cb Added a type cast to avoid GCC warnings. 2004-08-16 04:27:25 +00:00
Roland Illig
a998d33f7c Made the implicit conversions explicit to prevent "hidden" bugs. 2004-08-16 04:26:46 +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