[VFATLIB] Only attempt to clear the dirty set bit in rw mode.

This commit is contained in:
Pierre Schweitzer 2018-05-28 09:00:13 +02:00
parent cd9f22e9e5
commit 59dc951bf7
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B

View file

@ -294,9 +294,11 @@ static char print_fat_dirty_state(void)
if (interactive) {
printf("1) Remove dirty bit\n" "2) No action\n");
return get_key("12", "?");
} else
} else if (rw) {
printf(" Automatically removing dirty bit.\n");
return '1';
}
return '2';
}
static void check_fat_state_bit(DOS_FS * fs, void *b)