diff options
| author | Brian Somers <brian@FreeBSD.org> | 1999-12-30 03:36:11 +0000 |
|---|---|---|
| committer | Brian Somers <brian@FreeBSD.org> | 1999-12-30 03:36:11 +0000 |
| commit | a19a5c023dc8470b49a6b7728b34e8801fe5a671 (patch) | |
| tree | 86b8f78e5add64c971fcdbbad1ae31bf195609a3 /usr.sbin/ppp/chat.c | |
| parent | b6fd7c61881bdf8e3f8180caa0103d71181cb3b0 (diff) | |
Notes
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 c6acdb1df38b..44849365b50e 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); |
