pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/shells/pdksh/files Fix build on HP-UX.
details: https://anonhg.NetBSD.org/pkgsrc/rev/b21723624da2
branches: trunk
changeset: 394958:b21723624da2
user: ahoka <ahoka%pkgsrc.org@localhost>
date: Sat Jun 27 23:42:39 2009 +0000
description:
Fix build on HP-UX.
pdksh is so messy.
diffstat:
shells/pdksh/files/misc.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r 6416626bcf05 -r b21723624da2 shells/pdksh/files/misc.c
--- a/shells/pdksh/files/misc.c Sat Jun 27 22:30:50 2009 +0000
+++ b/shells/pdksh/files/misc.c Sat Jun 27 23:42:39 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: misc.c,v 1.3 2008/06/15 14:20:09 tnn Exp $ */
+/* $NetBSD: misc.c,v 1.4 2009/06/27 23:42:39 ahoka Exp $ */
/*
* Miscellaneous functions
@@ -319,6 +319,12 @@
if (f == FPRIVILEGED && oldval && !newval) {
#ifdef OS2
;
+#elif defined(__hpux)
+ ksheuid = getuid();
+ setresuid((uid_t) -1, getuid(), (uid_t) -1);
+ setuid(ksheuid);
+ setresgid((gid_t) -1, getgid(), (gid_t) -1);
+ setgid(getgid());
#else /* OS2 */
seteuid(ksheuid = getuid());
setuid(ksheuid);
Home |
Main Index |
Thread Index |
Old Index