mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-08 20:41:59 +03:00
Fri Feb 12 06:36:58 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
* src/utilunix.c (my_system): Compilation fix: on systems without setreuid use setuid.
This commit is contained in:
parent
da63ee80d9
commit
c087495fb8
@ -1,3 +1,8 @@
|
||||
Fri Feb 12 06:36:58 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
|
||||
|
||||
* utilunix.c (my_system): Compilation fix: on systems without
|
||||
setreuid use setuid.
|
||||
|
||||
1999-02-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
||||
|
||||
* panel.h (WPanel): Removed unused field "corbadat".
|
||||
|
@ -283,7 +283,11 @@ int my_system (int flags, const char *shell, const char *command)
|
||||
|
||||
#ifdef USE_VFS
|
||||
if (flags & EXECUTE_SETUID)
|
||||
#if defined (HAVE_SETREUID)
|
||||
setreuid (vfs_uid, vfs_uid);
|
||||
#elif defined (HAVE_SETUID)
|
||||
setuid (vfs_uid);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
if (flags & EXECUTE_AS_SHELL)
|
||||
|
Loading…
Reference in New Issue
Block a user