mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
* 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:
parent
d1e02fba0f
commit
35aa47461b
@ -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>
|
||||
|
10
vfs/extfs.c
10
vfs/extfs.c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user