From fb9c46b59a1fdcea7360008abfe22136f0069d8b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 26 Sep 2008 15:39:51 +0200 Subject: [PATCH] Applying Gentoos dosfstools-2.11-preen.patch from Roy Marples to alias dosfsck -p to -a: * Map -p to -a for baselayout-2, #177514. Signed-off-by: Daniel Baumann --- dosfsck/dosfsck.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dosfsck/dosfsck.c b/dosfsck/dosfsck.c index 185f17e..d19e9ed 100644 --- a/dosfsck/dosfsck.c +++ b/dosfsck/dosfsck.c @@ -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;