From c087495fb8807679578bdebbcdcf18659a80bc1f Mon Sep 17 00:00:00 2001 From: Norbert Warmuth Date: Fri, 12 Feb 1999 05:37:46 +0000 Subject: [PATCH] Fri Feb 12 06:36:58 1999 Norbert Warmuth * src/utilunix.c (my_system): Compilation fix: on systems without setreuid use setuid. --- src/ChangeLog | 5 +++++ src/utilunix.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index bcde663f8..90d2feb10 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +Fri Feb 12 06:36:58 1999 Norbert Warmuth + + * utilunix.c (my_system): Compilation fix: on systems without + setreuid use setuid. + 1999-02-11 Federico Mena Quintero * panel.h (WPanel): Removed unused field "corbadat". diff --git a/src/utilunix.c b/src/utilunix.c index c7fbaa13f..4686cc95d 100644 --- a/src/utilunix.c +++ b/src/utilunix.c @@ -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)