1
0
mirror of https://github.com/openbsd/src.git synced 2024-12-22 16:42:56 -08:00
This commit is contained in:
deraadt 2003-12-29 22:08:44 +00:00
parent 314b0d4133
commit 1e5992717b
2 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* $OpenBSD: privsep.c,v 1.10 2003/12/29 22:05:10 djm Exp $ */
/* $OpenBSD: privsep.c,v 1.11 2003/12/29 22:08:44 deraadt Exp $ */
/*
* Copyright (c) 2003 Anil Madhavapeddy <anil@recoil.org>
@ -123,7 +123,7 @@ priv_init(char *conf, int numeric, int lockfd, int nullfd, char *argv[])
if (chroot(pw->pw_dir) != 0)
err(1, "unable to chroot");
chdir("/");
gidset[0] = pw->pw_gid;
if (setgroups(1, gidset) == -1)
err(1, "setgroups() failed");

View File

@ -1,4 +1,4 @@
/* $OpenBSD: syslogd.c,v 1.68 2003/12/29 22:05:11 djm Exp $ */
/* $OpenBSD: syslogd.c,v 1.69 2003/12/29 22:08:44 deraadt Exp $ */
/*
* Copyright (c) 1983, 1988, 1993, 1994
@ -39,7 +39,7 @@ static const char copyright[] =
#if 0
static const char sccsid[] = "@(#)syslogd.c 8.3 (Berkeley) 4/4/94";
#else
static const char rcsid[] = "$OpenBSD: syslogd.c,v 1.68 2003/12/29 22:05:11 djm Exp $";
static const char rcsid[] = "$OpenBSD: syslogd.c,v 1.69 2003/12/29 22:08:44 deraadt Exp $";
#endif
#endif /* not lint */
@ -320,7 +320,7 @@ main(int argc, char *argv[])
die(0);
} else {
/* double socket receive buffer size */
if (getsockopt(fd, SOL_SOCKET, SO_RCVBUF, &len,
if (getsockopt(fd, SOL_SOCKET, SO_RCVBUF, &len,
&slen) == 0) {
len *= 2;
(void)setsockopt(fd, SOL_SOCKET, SO_RCVBUF, &len, slen);
@ -486,8 +486,8 @@ main(int argc, char *argv[])
for (i = 0; i < nfunix; i++) {
if ((pfd[PFD_UNIX_0 + i].revents & POLLIN) != 0) {
len = sizeof(fromunix);
len = recvfrom(pfd[PFD_UNIX_0 + i].fd, line,
MAXLINE, 0, (struct sockaddr *)&fromunix,
len = recvfrom(pfd[PFD_UNIX_0 + i].fd, line,
MAXLINE, 0, (struct sockaddr *)&fromunix,
&len);
if (len > 0) {
line[len] = '\0';