fsck_msdosfs: accept no-op -C option for compatibilty with fsck

Submitted by:	marck
Reviewed by:	current@
Approved by:	jhb (mentor)
MFC after:	1 week
This commit is contained in:
Andriy Gapon 2009-06-10 19:02:54 +00:00
parent dce35fe0ff
commit 6f81b90ff5
2 changed files with 10 additions and 4 deletions

View File

@ -32,7 +32,7 @@
.\" .\"
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd August 13, 1995 .Dd June 4, 2009
.Dt FSCK_MSDOSFS 8 .Dt FSCK_MSDOSFS 8
.Os .Os
.Sh NAME .Sh NAME
@ -41,10 +41,10 @@
.Sh SYNOPSIS .Sh SYNOPSIS
.Nm .Nm
.Fl p .Fl p
.Op Fl f .Op Fl Cf
.Ar filesystem ... .Ar filesystem ...
.Nm .Nm
.Op Fl ny .Op Fl Cny
.Ar filesystem ... .Ar filesystem ...
.Sh DESCRIPTION .Sh DESCRIPTION
The The
@ -80,6 +80,10 @@ making any changes.
.Pp .Pp
The options are as follows: The options are as follows:
.Bl -tag -width indent .Bl -tag -width indent
.It Fl C
Compatibility with the corresponding
.Xr fsck 8
option (skip check if clean), defined to no-op.
.It Fl F .It Fl F
Compatibility with the wrapper Compatibility with the wrapper
.Xr fsck 8 .Xr fsck 8

View File

@ -74,8 +74,10 @@ main(int argc, char **argv)
int ch; int ch;
skipclean = 1; skipclean = 1;
while ((ch = getopt(argc, argv, "fFnpy")) != -1) { while ((ch = getopt(argc, argv, "CfFnpy")) != -1) {
switch (ch) { switch (ch) {
case 'C': /* for fsck_ffs compatibility */
break;
case 'f': case 'f':
skipclean = 0; skipclean = 0;
break; break;