--- diskdev_cmds-332.14.orig/fsck_hfs.tproj/fsck_hfs.8 2011-04-12 21:21:21.310348367 -0500 +++ diskdev_cmds-332.14.orig/fsck_hfs.tproj/fsck_hfs.8 2011-04-12 21:26:34.252187607 -0500 @@ -27,7 +27,7 @@ .Op Fl df .Ar special ... .Nm fsck_hfs -.Fl p +.Op Fl a | p .Op Fl df .Ar special ... .Nm fsck_hfs @@ -74,6 +74,10 @@ .Pp The options are as follows: .Bl -hang -offset indent +.It Fl a +This option does the same thing as the +.Fl p +option. It is provided for backwards compatibility. .It Fl d Display debugging information. This option may provide useful information when --- diskdev_cmds-332.14.orig/fsck_hfs.tproj/fsck_hfs.c 2011-04-12 20:55:41.936753802 -0500 +++ diskdev_cmds-332.14.orig/fsck_hfs.tproj/fsck_hfs.c 2011-04-12 21:24:43.881075728 -0500 @@ -109,7 +109,7 @@ else progname = *argv; - while ((ch = getopt(argc, argv, "dfglm:npqruy")) != EOF) { + while ((ch = getopt(argc, argv, "adfglm:npqruy")) != EOF) { switch (ch) { case 'd': debug++; @@ -145,6 +145,7 @@ yflag = 0; break; + case 'a': case 'p': preen++; break; @@ -529,7 +530,8 @@ static void usage() { - (void) fprintf(stderr, "usage: %s [-dfl m [mode] npqruy] special-device\n", progname); + (void) fprintf(stderr, "usage: %s [-adfl m [mode] npqruy] special-device\n", progname); + (void) fprintf(stderr, " a = same as p option for compatiblity\n"); (void) fprintf(stderr, " d = output debugging info\n"); (void) fprintf(stderr, " f = force fsck even if clean (preen only) \n"); (void) fprintf(stderr, " l = live fsck (lock down and test-only)\n");