Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/fsck_lfs Add "-f" flag to match fsck(8) manual page. T...



details:   https://anonhg.NetBSD.org/src/rev/442184a245b1
branches:  trunk
changeset: 499114:442184a245b1
user:      perseant <perseant%NetBSD.org@localhost>
date:      Sat Nov 11 22:26:10 2000 +0000

description:
Add "-f" flag to match fsck(8) manual page.  This flag currently has no
effect.  Fixes PR #11129.

diffstat:

 sbin/fsck_lfs/main.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 19c9a28da462 -r 442184a245b1 sbin/fsck_lfs/main.c
--- a/sbin/fsck_lfs/main.c      Sat Nov 11 22:18:57 2000 +0000
+++ b/sbin/fsck_lfs/main.c      Sat Nov 11 22:26:10 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.6 2000/06/14 18:43:58 perseant Exp $     */
+/* $NetBSD: main.c,v 1.7 2000/11/11 22:26:10 perseant Exp $     */
 
 /*
  * Copyright (c) 1980, 1986, 1993
@@ -69,7 +69,7 @@
 {
        int             ch;
        int             ret = 0;
-       char           *optstring = "b:C:di:m:npy";
+       char           *optstring = "b:C:dfi:m:npy";
 
        sync();
        skipclean = 1;
@@ -91,6 +91,9 @@
                case 'e':
                        exitonfail++;
                        break;
+               case 'f':
+                       skipclean = 0;
+                       break;
                case 'i':
                        idaddr = strtol(optarg, NULL, 0);
                        break;



Home | Main Index | Thread Index | Old Index