diff options
author | dillon <dillon@FreeBSD.org> | 1998-12-01 21:12:57 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 1998-12-01 21:12:57 +0000 |
commit | c4e01c66b0dce2d1c3e267d0a0af0fb936d2a2cb (patch) | |
tree | a7128e0b97044a5447472d381715680b596a30ab /libexec | |
parent | 553622b947ee399a1b4f079f5c65cd55f43f2095 (diff) | |
download | FreeBSD-src-c4e01c66b0dce2d1c3e267d0a0af0fb936d2a2cb.zip FreeBSD-src-c4e01c66b0dce2d1c3e267d0a0af0fb936d2a2cb.tar.gz |
Reviewed by: freebsd-current, freebsd-security
Removed getuid() root check so ntalkd can be run from a tty sandbox.
It isn't suid root anyway, who knows why the getuid() check was even
in there in the first place!
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/talkd/talkd.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libexec/talkd/talkd.c b/libexec/talkd/talkd.c index dcb2624..bb61f7e 100644 --- a/libexec/talkd/talkd.c +++ b/libexec/talkd/talkd.c @@ -42,7 +42,7 @@ static const char copyright[] = static char sccsid[] = "@(#)talkd.c 8.1 (Berkeley) 6/4/93"; #endif static const char rcsid[] = - "$Id$"; + "$Id: talkd.c,v 1.8 1997/12/02 12:33:42 charnier Exp $"; #endif /* not lint */ /* @@ -89,8 +89,13 @@ main(argc, argv) register CTL_MSG *mp = &request; int cc; +#ifdef NOTDEF + /* + * removed so ntalkd can run in tty sandbox + */ if (getuid()) errx(1, "getuid: not super-user"); +#endif openlog("talkd", LOG_PID, LOG_DAEMON); if (gethostname(hostname, sizeof (hostname) - 1) < 0) { syslog(LOG_ERR, "gethostname: %m"); |