diff options
author | brian <brian@FreeBSD.org> | 1999-12-30 03:36:11 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1999-12-30 03:36:11 +0000 |
commit | 7a49c5353eae55a58eca0de57ed432432624e1dc (patch) | |
tree | a8c6db3de6f4ba5408490ec8c2fa4f53c70e2ae6 /usr.sbin/ppp/chat.c | |
parent | 48829a5d6b8a2d298f31a3d298c809338e2dfb1a (diff) | |
download | FreeBSD-src-7a49c5353eae55a58eca0de57ed432432624e1dc.zip FreeBSD-src-7a49c5353eae55a58eca0de57ed432432624e1dc.tar.gz |
Correct usages of getuid() and geteuid()
Pointed out by: billf
Diffstat (limited to 'usr.sbin/ppp/chat.c')
-rw-r--r-- | usr.sbin/ppp/chat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ppp/chat.c b/usr.sbin/ppp/chat.c index c6acdb1..4484936 100644 --- a/usr.sbin/ppp/chat.c +++ b/usr.sbin/ppp/chat.c @@ -731,7 +731,7 @@ ExecStr(struct physical *physical, char *command, char *out, int olen) open(_PATH_DEVNULL, O_RDWR); /* Leave it closed if it fails... */ for (i = getdtablesize(); i > 3; i--) fcntl(i, F_SETFD, 1); - setuid(geteuid()); + setuid(ID0realuid()); execvp(argv[0], argv); fprintf(stderr, "execvp: %s: %s\n", argv[0], strerror(errno)); _exit(127); |