summaryrefslogtreecommitdiff
path: root/support/popt.c
diff options
context:
space:
mode:
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);
}