Date: Sun, 17 Aug 2014 19:06:27 +0000 (UTC) From: Neel Natu <neel@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r270111 - in head: libexec/getty libexec/rshd sbin/init usr.bin/lock usr.bin/login usr.sbin/timed/timedc Message-ID: <201408171906.s7HJ6Rs1072814@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: neel Date: Sun Aug 17 19:06:26 2014 New Revision: 270111 URL: http://svnweb.freebsd.org/changeset/base/270111 Log: Remove LOG_ODELAY because it does nothing. Reviewed by: jilles CR: https://reviews.freebsd.org/D611 Modified: head/libexec/getty/main.c head/libexec/rshd/rshd.c head/sbin/init/init.c head/usr.bin/lock/lock.c head/usr.bin/login/login.c head/usr.sbin/timed/timedc/timedc.c Modified: head/libexec/getty/main.c ============================================================================== --- head/libexec/getty/main.c Sun Aug 17 18:27:02 2014 (r270110) +++ head/libexec/getty/main.c Sun Aug 17 19:06:26 2014 (r270111) @@ -187,7 +187,7 @@ main(int argc, char *argv[]) signal(SIGINT, SIG_IGN); signal(SIGQUIT, SIG_IGN); - openlog("getty", LOG_ODELAY|LOG_CONS|LOG_PID, LOG_AUTH); + openlog("getty", LOG_CONS|LOG_PID, LOG_AUTH); gethostname(hostname, sizeof(hostname) - 1); hostname[sizeof(hostname) - 1] = '\0'; if (hostname[0] == '\0') Modified: head/libexec/rshd/rshd.c ============================================================================== --- head/libexec/rshd/rshd.c Sun Aug 17 18:27:02 2014 (r270110) +++ head/libexec/rshd/rshd.c Sun Aug 17 19:06:26 2014 (r270111) @@ -127,7 +127,7 @@ main(int argc, char *argv[]) int ch, on = 1; struct sockaddr_storage from; - openlog("rshd", LOG_PID | LOG_ODELAY, LOG_DAEMON); + openlog("rshd", LOG_PID, LOG_DAEMON); opterr = 0; while ((ch = getopt(argc, argv, OPTIONS)) != -1) Modified: head/sbin/init/init.c ============================================================================== --- head/sbin/init/init.c Sun Aug 17 18:27:02 2014 (r270110) +++ head/sbin/init/init.c Sun Aug 17 19:06:26 2014 (r270111) @@ -242,7 +242,7 @@ invalid: * Note that this does NOT open a file... * Does 'init' deserve its own facility number? */ - openlog("init", LOG_CONS|LOG_ODELAY, LOG_AUTH); + openlog("init", LOG_CONS, LOG_AUTH); /* * Create an initial session. Modified: head/usr.bin/lock/lock.c ============================================================================== --- head/usr.bin/lock/lock.c Sun Aug 17 18:27:02 2014 (r270110) +++ head/usr.bin/lock/lock.c Sun Aug 17 19:06:26 2014 (r270111) @@ -97,7 +97,7 @@ main(int argc, char **argv) char *ap, *cryptpw, *mypw, *ttynam, *tzn; char hostname[MAXHOSTNAMELEN], s[BUFSIZ], s1[BUFSIZ]; - openlog("lock", LOG_ODELAY, LOG_AUTH); + openlog("lock", 0, LOG_AUTH); sectimeout = TIMEOUT; pw = NULL; Modified: head/usr.bin/login/login.c ============================================================================== --- head/usr.bin/login/login.c Sun Aug 17 18:27:02 2014 (r270110) +++ head/usr.bin/login/login.c Sun Aug 17 19:06:26 2014 (r270111) @@ -198,7 +198,7 @@ main(int argc, char *argv[]) (void)alarm(timeout); (void)setpriority(PRIO_PROCESS, 0, 0); - openlog("login", LOG_ODELAY, LOG_AUTH); + openlog("login", 0, LOG_AUTH); uid = getuid(); euid = geteuid(); Modified: head/usr.sbin/timed/timedc/timedc.c ============================================================================== --- head/usr.sbin/timed/timedc/timedc.c Sun Aug 17 18:27:02 2014 (r270110) +++ head/usr.sbin/timed/timedc/timedc.c Sun Aug 17 19:06:26 2014 (r270111) @@ -66,7 +66,7 @@ main(int argc, char *argv[]) { register struct cmd *c; - openlog("timedc", LOG_ODELAY, LOG_AUTH); + openlog("timedc", 0, LOG_AUTH); /* * security dictates!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408171906.s7HJ6Rs1072814>