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.
This commit is contained in:
parent
dfb1b7aea6
commit
9629cc1275
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=37645
@ -42,7 +42,7 @@ static const char copyright[] =
|
|||||||
static char sccsid[] = "@(#)msgs.c 8.2 (Berkeley) 4/28/95";
|
static char sccsid[] = "@(#)msgs.c 8.2 (Berkeley) 4/28/95";
|
||||||
#endif
|
#endif
|
||||||
static const char rcsid[] =
|
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 */
|
#endif /* not lint */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -179,8 +179,7 @@ int argc; char *argv[];
|
|||||||
setlocale(LC_ALL, "");
|
setlocale(LC_ALL, "");
|
||||||
|
|
||||||
time(&t);
|
time(&t);
|
||||||
seteuid(uid = getuid());
|
setuid(uid = getuid());
|
||||||
setuid(uid);
|
|
||||||
ruptible = (signal(SIGINT, SIG_IGN) == SIG_DFL);
|
ruptible = (signal(SIGINT, SIG_IGN) == SIG_DFL);
|
||||||
if (ruptible)
|
if (ruptible)
|
||||||
signal(SIGINT, SIG_DFL);
|
signal(SIGINT, SIG_DFL);
|
||||||
|
Loading…
Reference in New Issue
Block a user