summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorghelmer <ghelmer@FreeBSD.org>1998-07-14 19:07:30 +0000
committerghelmer <ghelmer@FreeBSD.org>1998-07-14 19:07:30 +0000
commitbcf8ce5d2eed9cdfe0a96a73faa121da72716f03 (patch)
tree903b885e89c98fbb6f914b844da92446a65d4eee /usr.bin
parent3d028a61c9cbd9e22735cc460d8472f1b8178854 (diff)
downloadFreeBSD-src-bcf8ce5d2eed9cdfe0a96a73faa121da72716f03.zip
FreeBSD-src-bcf8ce5d2eed9cdfe0a96a73faa121da72716f03.tar.gz
Revert "POSIX saved uids change". seteuid(2) is not POSIX, and
FreeBSD does not have _POSIX_SAVED_IDS enabled. Thanks to Warner Losh and Ollivier Robert for pointing this out, and Bruce Evans for explaining the role of _POSIX_SAVED_IDS.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/msgs/msgs.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/msgs/msgs.c b/usr.bin/msgs/msgs.c
index f5c37ab..74aa339 100644
--- a/usr.bin/msgs/msgs.c
+++ b/usr.bin/msgs/msgs.c
@@ -42,7 +42,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)msgs.c 8.2 (Berkeley) 4/28/95";
#endif
static const char rcsid[] =
- "$Id: msgs.c,v 1.11 1998/07/07 22:20:50 jkh Exp $";
+ "$Id: msgs.c,v 1.12 1998/07/09 14:06:54 ghelmer Exp $";
#endif /* not lint */
/*
@@ -179,8 +179,7 @@ int argc; char *argv[];
setlocale(LC_ALL, "");
time(&t);
- seteuid(uid = getuid());
- setuid(uid);
+ setuid(uid = getuid());
ruptible = (signal(SIGINT, SIG_IGN) == SIG_DFL);
if (ruptible)
signal(SIGINT, SIG_DFL);
OpenPOWER on IntegriCloud