Whamcloud - gitweb
ChangeLog, fsck.c:
authorTheodore Ts'o <tytso@mit.edu>
Thu, 4 Nov 1999 22:34:43 +0000 (22:34 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 4 Nov 1999 22:34:43 +0000 (22:34 +0000)
  fsck.c (main): Move setting of the interactive flag to before the call
   to check_all(), so that people who try to use fsck -As can do so
   interactively.

misc/ChangeLog
misc/fsck.c

index 462c632..c49b15d 100644 (file)
@@ -1,3 +1,9 @@
+1999-11-04    <tytso@valinux.com>
+
+       * fsck.c (main): Move setting of the interactive flag to before
+               the call to check_all(), so that people who try to use
+               fsck -As can do so interactively.
+
 1999-10-26    <tytso@valinux.com>
 
        * Release of E2fsprogs 1.17
index 6fa8407..0a616a5 100644 (file)
@@ -952,13 +952,13 @@ int main(int argc, char *argv[])
                fsck_path = string_copy(fsck_prefix_path);
        }
        
+       if ((num_devices == 1) || (serialize))
+               interactive = 1;
+
        /* If -A was specified ("check all"), do that! */
        if (doall)
                return check_all();
 
-       if ((num_devices == 1) || (serialize))
-               interactive = 1;
-
        for (i = 0 ; i < num_devices; i++) {
                fsck_device(devices[i], interactive);
                if (serialize) {