diff options
author | markj <markj@FreeBSD.org> | 2013-01-03 16:12:48 +0000 |
---|---|---|
committer | markj <markj@FreeBSD.org> | 2013-01-03 16:12:48 +0000 |
commit | e8588e6c07393ac104cb6bf5e726e1dea408f9aa (patch) | |
tree | 083eece615d7b314bbcf85802214536a89ddfe96 /usr.sbin/newsyslog | |
parent | f951ee4fbb0a0c110c0f3777dfc6c3e118bdc37b (diff) | |
download | FreeBSD-src-e8588e6c07393ac104cb6bf5e726e1dea408f9aa.zip FreeBSD-src-e8588e6c07393ac104cb6bf5e726e1dea408f9aa.tar.gz |
Have -n imply -r, since dry-run mode obviously doesn't require root
privileges.
Approved by: rstone (co-mentor)
MFC after: 1 week
Diffstat (limited to 'usr.sbin/newsyslog')
-rw-r--r-- | usr.sbin/newsyslog/newsyslog.8 | 4 | ||||
-rw-r--r-- | usr.sbin/newsyslog/newsyslog.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/newsyslog/newsyslog.8 b/usr.sbin/newsyslog/newsyslog.8 index 82fe5b7..87f60ac 100644 --- a/usr.sbin/newsyslog/newsyslog.8 +++ b/usr.sbin/newsyslog/newsyslog.8 @@ -125,7 +125,9 @@ reasons for either trimming that log or skipping it. Cause .Nm not to trim the logs, but to print out what it would do if this option -were not specified. +were not specified. This option implies the +.Fl r +option. .It Fl r Remove the restriction that .Nm diff --git a/usr.sbin/newsyslog/newsyslog.c b/usr.sbin/newsyslog/newsyslog.c index 654021f..ee90b99 100644 --- a/usr.sbin/newsyslog/newsyslog.c +++ b/usr.sbin/newsyslog/newsyslog.c @@ -644,7 +644,7 @@ parse_args(int argc, char **argv) break; case 'n': noaction++; - break; + /* FALLTHROUGH */ case 'r': needroot = 0; break; |