Applying Gentoos dosfstools-2.11-preen.patch from Roy Marples

<uberlord@gentoo.org> to alias dosfsck -p to -a:

  * Map -p to -a for baselayout-2, #177514.

Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
This commit is contained in:
Daniel Baumann 2008-09-26 15:39:51 +02:00
parent aaa40a9bbc
commit fb9c46b59a

View File

@ -40,6 +40,7 @@ static void usage(char *name)
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 @@ int main(int argc,char **argv)
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;