Have -n imply -r, since dry-run mode obviously doesn't require root

privileges.

Approved by:	rstone (co-mentor)
MFC after:	1 week
This commit is contained in:
markj 2013-01-03 16:12:48 +00:00
parent f951ee4fbb
commit e8588e6c07
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -644,7 +644,7 @@ parse_args(int argc, char **argv)
break;
case 'n':
noaction++;
break;
/* FALLTHROUGH */
case 'r':
needroot = 0;
break;