diff options
author | jbj <jbj@localhost> | 1998-09-24 16:57:39 +0000 |
---|---|---|
committer | jbj <jbj@localhost> | 1998-09-24 16:57:39 +0000 |
commit | 4038b92972666b62cb6ccbd1950a0075395b3bad (patch) | |
tree | c3d28842fc339589089c507ff915677b06ba4a7e | |
parent | f7239e875d99c16827f0a3494a9984c9f4dcb45f (diff) | |
download | gnome-common-4038b92972666b62cb6ccbd1950a0075395b3bad.tar.gz |
hpux does setreuid differently (Hermann Lauer)
svn path=/trunk/; revision=400
-rw-r--r-- | support/findme.c | 5 | ||||
-rw-r--r-- | support/popt.c | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/support/findme.c b/support/findme.c index 4e43d86..528d401 100644 --- a/support/findme.c +++ b/support/findme.c @@ -2,6 +2,11 @@ #include <stdlib.h> #include <string.h> #include <unistd.h> +#ifdef __NeXT +/* access macros are not declared in non posix mode in unistd.h - + don't try to use posix on NeXTstep 3.3 ! */ +#include <libc.h> +#endif #if HAVE_ALLOCA_H # include <alloca.h> diff --git a/support/popt.c b/support/popt.c index 886ac72..fbe5a95 100644 --- a/support/popt.c +++ b/support/popt.c @@ -222,7 +222,11 @@ static void execCommand(poptContext con) { argv[pos++] = NULL; - setreuid(getuid(), getuid()); +#ifdef __hpux + setresuid(getuid(), getuid(),-1); +#else + setreuid(getuid(), getuid()); /*hlauer: not portable to hpux9.01 */ +#endif execvp(argv[0], argv); } |