diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-07-23 05:17:47 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-07-23 05:17:47 +0000 |
commit | c255343a33c3f0969cced043e831145d9054b95a (patch) | |
tree | 7466d88e68dd2cf3787c64e93f4b8e1ace04edee /usr.bin/skeyaudit | |
parent | 9e52122f98445f6979397603fd87d53b16f0b40b (diff) |
Add a seteuid() just in case someone decides to make this setuid
by some uid other than 0.
Diffstat (limited to 'usr.bin/skeyaudit')
-rw-r--r-- | usr.bin/skeyaudit/skeyaudit.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/skeyaudit/skeyaudit.c b/usr.bin/skeyaudit/skeyaudit.c index ce88c72d31f..ad02b969f84 100644 --- a/usr.bin/skeyaudit/skeyaudit.c +++ b/usr.bin/skeyaudit/skeyaudit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: skeyaudit.c,v 1.2 1997/07/23 04:31:17 millert Exp $ */ +/* $OpenBSD: skeyaudit.c,v 1.3 1997/07/23 05:17:46 millert Exp $ */ /* * Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com> @@ -99,7 +99,9 @@ main(argc, argv) warnx("%s is not listed in /etc/skeykeys", name); } - setuid(getuid()); /* Run sendmail as user not root */ + /* Run sendmail as user not root */ + seteuid(getuid()); + setuid(getuid()); if (errs || left >= limit) exit(errs); |