]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/mount/mount.c
behavior as file systems that use the monolithic /sbin/mount command.
[nfs-utils.git] / utils / mount / mount.c
index 2909595b5926d63501c5dbf970e7372d19ace231..b4da21faa74508160ffde358ed96dd40074f3de6 100644 (file)
@@ -209,7 +209,7 @@ static char *fix_opts_string(int flags, const char *extra_opts)
        }
        if (flags & MS_USERS)
                new_opts = xstrconcat3(new_opts, ",users", "");
-       
+
        for (om = opt_map; om->opt != NULL; om++) {
                if (om->skip)
                        continue;
@@ -281,7 +281,7 @@ static int add_mtab(char *spec, char *mount_point, char *fstype,
        ment.mnt_fsname = spec;
        ment.mnt_dir = mount_point;
        ment.mnt_type = fstype;
-       ment.mnt_opts = fix_opts_string(flags, opts);
+       ment.mnt_opts = fix_opts_string(flags & ~MS_NOMTAB, opts);
        ment.mnt_freq = freq;
        ment.mnt_passno = pass;