diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-12-22 02:57:53 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-12-22 02:57:53 +0000 |
commit | e568909a2dfe2282aa7a04e4362269a6bbe1ea6f (patch) | |
tree | 06e8ecd4d5adadf7bbe3d072c57fc1ed75151945 /bin/ksh/misc.c | |
parent | cd662cc5ca14c9185fe05b30854c26d3b5fe0525 (diff) |
Deal with _POSIX_SAVED_IDS when relinquishing privileges
Diffstat (limited to 'bin/ksh/misc.c')
-rw-r--r-- | bin/ksh/misc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/ksh/misc.c b/bin/ksh/misc.c index dcbd8130b18..5108389f6bf 100644 --- a/bin/ksh/misc.c +++ b/bin/ksh/misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: misc.c,v 1.2 1996/08/19 20:08:57 downsj Exp $ */ +/* $OpenBSD: misc.c,v 1.3 1996/12/22 02:57:49 tholo Exp $ */ /* * Miscellaneous functions @@ -308,7 +308,9 @@ change_flag(f, what, newval) #ifdef OS2 ; #else /* OS2 */ + seteuid(getuid()); setuid(getuid()); + setegid(getgid()); setgid(getgid()); #endif /* OS2 */ } else if (f == FPOSIX && newval) { |