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 /support/popt.c | |
parent | f7239e875d99c16827f0a3494a9984c9f4dcb45f (diff) | |
download | shared-mime-info-4038b92972666b62cb6ccbd1950a0075395b3bad.tar.gz |
hpux does setreuid differently (Hermann Lauer)
svn path=/trunk/; revision=400
Diffstat (limited to 'support/popt.c')
-rw-r--r-- | support/popt.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/support/popt.c b/support/popt.c index 886ac723..fbe5a95c 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); } |