diff options
author | brian <brian@FreeBSD.org> | 1997-11-13 17:31:52 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-11-13 17:31:52 +0000 |
commit | ac24f713f0369cb6c1a32025a602f88e91b9181d (patch) | |
tree | c5a55943c464efab98608469bd466d225690e9d2 /usr.sbin/ppp/id.c | |
parent | 4acd7a70dacf7255bb61397ed869bab1f07e5c5f (diff) | |
download | FreeBSD-src-ac24f713f0369cb6c1a32025a602f88e91b9181d.zip FreeBSD-src-ac24f713f0369cb6c1a32025a602f88e91b9181d.tar.gz |
Use seteuid() instead of setreuid().
The setreuid() page says seteuid is better !
Diffstat (limited to 'usr.sbin/ppp/id.c')
-rw-r--r-- | usr.sbin/ppp/id.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/ppp/id.c b/usr.sbin/ppp/id.c index c37e5fe..4a3d687 100644 --- a/usr.sbin/ppp/id.c +++ b/usr.sbin/ppp/id.c @@ -1,5 +1,5 @@ /* - * $Id: defs.c,v 1.1 1997/10/26 01:02:30 brian Exp $ + * $Id: id.c,v 1.1 1997/11/09 06:22:40 brian Exp $ */ #include <sys/types.h> @@ -39,8 +39,8 @@ ID0init() static void ID0setuser() { - if (setreuid(euid, uid) == -1) { - LogPrintf(LogERROR, "ID0setuser: Unable to setreuid!\n"); + if (seteuid(uid) == -1) { + LogPrintf(LogERROR, "ID0setuser: Unable to seteuid!\n"); Cleanup(EX_NOPERM); } } @@ -54,8 +54,8 @@ ID0realuid() static void ID0set0() { - if (setreuid(uid, euid) == -1) { - LogPrintf(LogERROR, "ID0set0: Unable to setreuid!\n"); + if (seteuid(euid) == -1) { + LogPrintf(LogERROR, "ID0set0: Unable to seteuid!\n"); Cleanup(EX_NOPERM); } } |