Commit Graph

6265 Commits

Author SHA1 Message Date
Roland Illig
25d3b4b489 Added a FIXME comment concerning the interpretation of the "cd" command. 2004-08-17 20:08:07 +00:00
Andrew V. Samoilov
6776c2cdb9 do_background: Use O_RDWR when opening the file '/dev/null'
for replacement standard streams.
2004-08-17 20:01:58 +00:00
Andrew V. Samoilov
ff6051511f ckground.c (do_background): Use O_RDWR when opening the file '/dev/null'
for replacement standard streams.
2004-08-17 20:01:30 +00:00
Andrew V. Samoilov
d3d15be22f utilunix.c(mc_tmpdir): Check return value of getpwuid() for NULL. 2004-08-17 18:46:33 +00:00
Andrew V. Samoilov
72488a9d6c mc_tmpdir: Check return value of getpwuid() for NULL. 2004-08-17 18:45:47 +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
756067410f Removed trailing comma in enumeration. 2004-08-17 11:13:10 +00:00
Roland Illig
2ebf787653 Renamed version to show_version to avoid name clashes. 2004-08-17 10:40:16 +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
d579b0bc77 Maintainer mode implies additional GCC warnings. 2004-08-17 10:15:45 +00:00
Roland Illig
e4b55374d8 Enable GCC version specific warnings. 2004-08-17 09:52:53 +00:00
Roland Illig
5a345d5e4d Const-ified the vfs_find[ug]id functions. 2004-08-17 09:48:15 +00:00
Roland Illig
6eb3569507 Prepend instead of append the CFLAGS and CXXFLAGS. 2004-08-17 09:41:19 +00:00
Roland Illig
4e62c492e3 Added GCC warnings for various compiler versions. 2004-08-17 09:39:19 +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
Roland Illig
64aad2cda5 GCC Warnings are only activated in maintainer-mode. They have been moved some lines down to not disturb feature checking (when CFLAGS="-Werror"). 2004-08-17 08:53:30 +00:00
Andrew V. Samoilov
c71b24708a Fix insecure temporary file and directory creations. Add files:
doc/mc.1.in, doc/es/mc.1.in, doc/hu/mc.1.in, doc/it/mc.1.in,
doc/pl/mc.1.in, doc/ru/mc.1.in, doc/sr/mc.1.in
2004-08-17 08:45:49 +00:00
Andrew V. Samoilov
d65d90116c Security fix patch. Fix insecure temporary file and directory creations. (CAN-2004-0231) 2004-08-17 08:41:52 +00:00
Andrew V. Samoilov
ce8669be61 lib/cedit.menu, lib/mc.menu - Fix insecure temporary file
and directory creations.
2004-08-17 08:37:46 +00:00
Andrew V. Samoilov
9278084559 Security fix patch. Fix insecure temporary file and directory creations. (CAN-2004-0231) 2004-08-17 08:31:16 +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
cc99c400f3 Added check for <security/pam_misc.h>. 2004-08-17 00:53:03 +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
207f7d126c Even more const-ification. 2004-08-17 00:00:32 +00:00
Roland Illig
5c74367969 Added more const-ness to variables. 2004-08-16 23:48:46 +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
9d41314d09 Added more const-ness to print_vfs_message. 2004-08-16 18:31:30 +00:00
Roland Illig
a22afa7a72 Added more const-ness to variables. 2004-08-16 18:31:05 +00:00
Roland Illig
9dfb30636e Compacted and commented the code in do_try_to_select. 2004-08-16 18:30:34 +00:00
Roland Illig
511c710fe6 Added explicit initializers for global variables. 2004-08-16 18:25:16 +00:00
Roland Illig
2c77aa7e1c Documented x_basename and added const. 2004-08-16 18:19:37 +00:00
Roland Illig
3dcf497216 Added more const-ness to variables. 2004-08-16 17:53:07 +00:00
Roland Illig
640f3a163c Added more const-ness to variables and functions. 2004-08-16 17:49:57 +00:00
Roland Illig
29010bfdd1 Removed explicit loop unrolling in xx_strchr as that is the job of the compiler. 2004-08-16 17:48:38 +00:00
Roland Illig
2399a1604f Removed unnecessary type cast. 2004-08-16 17:45:59 +00:00
Roland Illig
493febff35 Added more const-ness to a variable. 2004-08-16 17:45:38 +00:00