1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
diff -ur a/dosfsck/dosfsck.c b/dosfsck/dosfsck.c
--- a/dosfsck/dosfsck.c 2007-05-07 18:39:13.000000000 +0100
+++ b/dosfsck/dosfsck.c 2007-05-07 19:50:10.000000000 +0100
@@ -40,6 +40,7 @@
fprintf(stderr," -f salvage unused chains to files\n");
fprintf(stderr," -l list path names\n");
fprintf(stderr," -n no-op, check non-interactively without changing\n");
+ fprintf(stderr," -p same as -a, for compat with other *fsck\n");
fprintf(stderr," -r interactively repair the file system\n");
fprintf(stderr," -t test for bad clusters\n");
fprintf(stderr," -u path try to undelete that (non-directory) file\n");
@@ -91,12 +92,13 @@
interactive = 1;
check_atari();
- while ((c = getopt(argc,argv,"Aad:flnrtu:vVwy")) != EOF)
+ while ((c = getopt(argc,argv,"Aad:flnprtu:vVwy")) != EOF)
switch (c) {
case 'A': /* toggle Atari format */
atari_format = !atari_format;
break;
case 'a':
+ case 'p':
case 'y':
rw = 1;
interactive = 0;
|