chiark / gitweb /
fsck: make fsck idempotent
authorLennart Poettering <lennart@poettering.net>
Tue, 19 Oct 2010 21:47:12 +0000 (23:47 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 19 Oct 2010 21:47:12 +0000 (23:47 +0200)
src/fsck.c

index 0e15089..eca2212 100644 (file)
@@ -135,7 +135,7 @@ static void test_files(void) {
 }
 
 int main(int argc, char *argv[]) {
-        const char *cmdline[7];
+        const char *cmdline[8];
         int i = 0, r = EXIT_FAILURE, q;
         pid_t pid;
         siginfo_t status;
@@ -194,6 +194,7 @@ int main(int argc, char *argv[]) {
         cmdline[i++] = "-a";
         cmdline[i++] = "-T";
         cmdline[i++] = "-C";
+        cmdline[i++] = "-M";
 
         if (arg_force)
                 cmdline[i++] = "-f";