diff options
Diffstat (limited to 'sbin/mdmfs/mdmfs.c')
-rw-r--r-- | sbin/mdmfs/mdmfs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/mdmfs/mdmfs.c b/sbin/mdmfs/mdmfs.c index 62a3316..9c59db7 100644 --- a/sbin/mdmfs/mdmfs.c +++ b/sbin/mdmfs/mdmfs.c @@ -116,8 +116,9 @@ main(int argc, char **argv) newfs_arg = strdup(""); mount_arg = strdup(""); - /* If we were started as mount_*, imply -C. */ - if (strncmp(getprogname(), "mount_", 6) == 0) + /* If we were started as mount_mfs or mfs, imply -C. */ + if (strcmp(getprogname(), "mount_mfs") == 0 || + strcmp(getprogname(), "mfs") == 0) compat = true; while ((ch = getopt(argc, argv, |