summaryrefslogtreecommitdiff
path: root/misc/fsck.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>1999-11-04 22:34:43 +0000
committerTheodore Ts'o <tytso@mit.edu>1999-11-04 22:34:43 +0000
commit6a35ffa0ed7ca24436bdab1807b5ae9d1845946a (patch)
treeeceef1ea69e84508e248cc68c46877b482214f42 /misc/fsck.c
parentb3ee3744c452c412b53325b7aadaa386106570b3 (diff)
downloade2fsprogs-6a35ffa0ed7ca24436bdab1807b5ae9d1845946a.tar.gz
ChangeLog, fsck.c:
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.
Diffstat (limited to 'misc/fsck.c')
-rw-r--r--misc/fsck.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/misc/fsck.c b/misc/fsck.c
index 6fa84074..0a616a51 100644
--- a/misc/fsck.c
+++ b/misc/fsck.c
@@ -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) {