1
1

* sfs.c: Don't use flag EXECUTE_SETUID because it's being

removed as insecure and EXECUTE_WAIT because it has no effect.
* extfs.c: Likewise.
Этот коммит содержится в:
Pavel Roskin 2002-08-19 23:20:03 +00:00
родитель d1e02fba0f
Коммит 35aa47461b
3 изменённых файлов: 10 добавлений и 6 удалений

Просмотреть файл

@ -1,5 +1,9 @@
2002-08-19 Pavel Roskin <proski@gnu.org> 2002-08-19 Pavel Roskin <proski@gnu.org>
* sfs.c: Don't use flag EXECUTE_SETUID because it's being
removed as insecure and EXECUTE_WAIT because it has no effect.
* extfs.c: Likewise.
* mcfs.c [!WITH_MCFS]: Disable most code. * mcfs.c [!WITH_MCFS]: Disable most code.
2002-08-18 Pavel Roskin <proski@gnu.org> 2002-08-18 Pavel Roskin <proski@gnu.org>

Просмотреть файл

@ -647,7 +647,7 @@ static void *extfs_open (vfs *me, char *file, int flags, int mode)
g_free (q); g_free (q);
g_free (mc_extfsdir); g_free (mc_extfsdir);
g_free (archive_name); g_free (archive_name);
if (my_system (EXECUTE_AS_SHELL | EXECUTE_SETUID | EXECUTE_WAIT, shell, cmd) && !created){ if (my_system (EXECUTE_AS_SHELL, shell, cmd) && !created){
free (entry->inode->local_filename); free (entry->inode->local_filename);
entry->inode->local_filename = NULL; entry->inode->local_filename = NULL;
g_free (cmd); g_free (cmd);
@ -711,7 +711,7 @@ static int extfs_close (void *data)
g_free (archive_name); g_free (archive_name);
g_free (file_name); g_free (file_name);
g_free (mc_extfsdir); g_free (mc_extfsdir);
if (my_system (EXECUTE_AS_SHELL | EXECUTE_SETUID | EXECUTE_WAIT, shell, cmd)) if (my_system (EXECUTE_AS_SHELL, shell, cmd))
errno_code = EIO; errno_code = EIO;
g_free (cmd); g_free (cmd);
{ {
@ -1051,7 +1051,7 @@ static int extfs_unlink (vfs *me, char *file)
g_free (q); g_free (q);
g_free (mc_extfsdir); g_free (mc_extfsdir);
g_free (archive_name); g_free (archive_name);
if (my_system (EXECUTE_AS_SHELL | EXECUTE_SETUID | EXECUTE_WAIT, shell, cmd)){ if (my_system (EXECUTE_AS_SHELL, shell, cmd)){
g_free (cmd); g_free (cmd);
my_errno = EIO; my_errno = EIO;
return -1; return -1;
@ -1093,7 +1093,7 @@ static int extfs_mkdir (vfs *me, char *path, mode_t mode)
g_free (q); g_free (q);
g_free (mc_extfsdir); g_free (mc_extfsdir);
g_free (archive_name); g_free (archive_name);
if (my_system (EXECUTE_AS_SHELL | EXECUTE_SETUID | EXECUTE_WAIT, shell, cmd)){ if (my_system (EXECUTE_AS_SHELL, shell, cmd)){
g_free (cmd); g_free (cmd);
my_errno = EIO; my_errno = EIO;
remove_entry (entry); remove_entry (entry);
@ -1133,7 +1133,7 @@ static int extfs_rmdir (vfs *me, char *path)
g_free (q); g_free (q);
g_free (mc_extfsdir); g_free (mc_extfsdir);
g_free (archive_name); g_free (archive_name);
if (my_system (EXECUTE_AS_SHELL | EXECUTE_SETUID | EXECUTE_WAIT, shell, cmd)){ if (my_system (EXECUTE_AS_SHELL, shell, cmd)){
g_free (cmd); g_free (cmd);
my_errno = EIO; my_errno = EIO;
return -1; return -1;

Просмотреть файл

@ -96,7 +96,7 @@ static int vfmake (vfs *me, char *name, char *cache)
} }
g_free (name); g_free (name);
if (my_system (EXECUTE_AS_SHELL | EXECUTE_SETUID | EXECUTE_WAIT, "/bin/sh", pad)) { if (my_system (EXECUTE_AS_SHELL, "/bin/sh", pad)) {
return -1; return -1;
} }