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:
Norbert Warmuth 1999-02-12 05:37:46 +00:00
parent da63ee80d9
commit c087495fb8
2 changed files with 9 additions and 0 deletions

View File

@ -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".

View File

@ -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)