summaryrefslogtreecommitdiff
path: root/support/popt.c
diff options
context:
space:
mode:
authorjbj <jbj@localhost>1998-09-24 16:57:39 +0000
committerjbj <jbj@localhost>1998-09-24 16:57:39 +0000
commit4038b92972666b62cb6ccbd1950a0075395b3bad (patch)
treec3d28842fc339589089c507ff915677b06ba4a7e /support/popt.c
parentf7239e875d99c16827f0a3494a9984c9f4dcb45f (diff)
downloadshared-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.c6
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);
}