summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2001-09-06 12:48:44 +0000
committerru <ru@FreeBSD.org>2001-09-06 12:48:44 +0000
commit4a40801948866f17b1198a6c03e85eb0d72f1bbf (patch)
treef0a363065f87f6ff59788e448729ee4cf17c81a5 /usr.bin
parentea699b6bd491608a72a1d132bdb1101267e679b9 (diff)
downloadFreeBSD-src-4a40801948866f17b1198a6c03e85eb0d72f1bbf.zip
FreeBSD-src-4a40801948866f17b1198a6c03e85eb0d72f1bbf.tar.gz
The default for -p was ``kern.notice'' in the -h case.
Make it ``user.notice'', as per manpage. (The syslog(3) function defaults to LOG_USER facility if none is specified, but we don't use syslog() in the -h case.) PR: docs/30374 Noticed by: SUGIMURA Takashi <sugimura@jp.FreeBSD.org>
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/logger/logger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/logger/logger.c b/usr.bin/logger/logger.c
index 27983a0..bca1da0 100644
--- a/usr.bin/logger/logger.c
+++ b/usr.bin/logger/logger.c
@@ -94,7 +94,7 @@ main(argc, argv)
tag = NULL;
host = NULL;
- pri = LOG_NOTICE;
+ pri = LOG_USER | LOG_NOTICE;
logflags = 0;
unsetenv("TZ");
while ((ch = getopt(argc, argv, "46Af:h:ip:st:")) != -1)
OpenPOWER on IntegriCloud