Skip to content

Commit

Permalink
Merge pull request #1316 from ghaerr/fsck2
Browse files Browse the repository at this point in the history
[cmds] Fix fsck -r option to not reset automatic (-a)
  • Loading branch information
ghaerr committed Jun 12, 2022
2 parents dfab2ab + dea6d1d commit 064f47d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions elkscmd/disk_utils/fsck.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
*
* Usuage: fsck [-larvsm] device
* -l for a listing of all the filenames
* -a for automatic repairs (not implemented)
* -r for repairs (interactive) (not implemented)
* -a for automatic repairs
* -r for repairs (interactive)
* -v for verbose (tells how many files)
* -s for super-block info
* -m for minix-like "mode not cleared" warnings
Expand Down Expand Up @@ -913,7 +913,7 @@ int main(int argc, char ** argv)
switch (argv[0][0]) {
case 'l': list=1; break;
case 'a': automatic=1; repair=1; break;
case 'r': automatic=0; repair=1; break;
case 'r': repair=1; break;
case 'v': verbose++; break;
case 's': show=1; break;
case 'm': warn_mode=1; break;
Expand Down

0 comments on commit 064f47d

Please sign in to comment.