Commit Graph

6146 Commits

Author SHA1 Message Date
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
Roland Illig
13e298c2ea Replaced (char *) 0 by NULL. 2004-08-16 17:44:14 +00:00
Roland Illig
b2605e09e9 Code cleanup concerning PAUSE_OPTIONS. 2004-08-16 17:43:36 +00:00
Roland Illig
d003fcb1e0 Use memmove instead of memcpy for overlapping objects. 2004-08-16 17:42:47 +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
748279de99 Added more const-ness to the function arguments. 2004-08-16 16:22:35 +00:00
Roland Illig
bfb2047463 Removed unnecessary type cast. 2004-08-16 16:22:14 +00:00
Roland Illig
8aeea3256f Added more const-ness to the function arguments. 2004-08-16 15:45:05 +00:00
Roland Illig
5d44086ccc Added a C++ like const_cast macro. 2004-08-16 15:42:48 +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
f4129bc22b Fixed a format string bug (%s => %d). 2004-08-16 05:17:49 +00:00
Roland Illig
60ae60fb1e Print the pid as an int. 2004-08-16 04:57:07 +00:00
Roland Illig
6bd6aa7b50 Made output of the st_mode system independent. 2004-08-16 04:56:19 +00:00
Roland Illig
d1b57fbf7f Avoid compiler warning using gcc/Solaris8. 2004-08-16 04:49:08 +00:00
Roland Illig
6d483846cb Added a type cast to avoid GCC warnings. 2004-08-16 04:27:25 +00:00