* 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.
This commit is contained in:
Pavel Roskin 2002-08-19 23:20:03 +00:00
parent d1e02fba0f
commit 35aa47461b
3 changed files with 10 additions and 6 deletions

View File

@ -1,5 +1,9 @@
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.
2002-08-18 Pavel Roskin <proski@gnu.org>

View File

@ -647,7 +647,7 @@ static void *extfs_open (vfs *me, char *file, int flags, int mode)
g_free (q);
g_free (mc_extfsdir);
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);
entry->inode->local_filename = NULL;
g_free (cmd);
@ -711,7 +711,7 @@ static int extfs_close (void *data)
g_free (archive_name);
g_free (file_name);
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;
g_free (cmd);
{
@ -1051,7 +1051,7 @@ static int extfs_unlink (vfs *me, char *file)
g_free (q);
g_free (mc_extfsdir);
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);
my_errno = EIO;
return -1;
@ -1093,7 +1093,7 @@ static int extfs_mkdir (vfs *me, char *path, mode_t mode)
g_free (q);
g_free (mc_extfsdir);
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);
my_errno = EIO;
remove_entry (entry);
@ -1133,7 +1133,7 @@ static int extfs_rmdir (vfs *me, char *path)
g_free (q);
g_free (mc_extfsdir);
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);
my_errno = EIO;
return -1;

View File

@ -96,7 +96,7 @@ static int vfmake (vfs *me, char *name, char *cache)
}
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;
}