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:
Mark Johnston 2013-01-03 16:12:48 +00:00
parent 220936938f
commit 468d206524
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=244996
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;