Kumar spotted another bug: if we autodetect nfs and they haven't specified the
authorRob Landley <rob@landley.net>
Wed, 5 Apr 2006 01:43:39 +0000 (01:43 -0000)
committerRob Landley <rob@landley.net>
Wed, 5 Apr 2006 01:43:39 +0000 (01:43 -0000)
fstype, it should be set to nfs.

util-linux/mount.c

index ba55d2480159a8b2c17f937950b5eb30c2d0b789..68f48355539e41ecee669e75938e3fb4bf3b67a8 100644 (file)
@@ -284,6 +284,7 @@ static int singlemount(struct mntent *mp)
                        return 1;
                } else {
                        // Strangely enough, nfsmount() doesn't actually mount() anything.
+                       mp->mnt_type = "nfs";
                        rc = mount_it_now(mp, vfsflags, filteropts);
                        if (ENABLE_FEATURE_CLEAN_UP) free(filteropts);