mount: do not execute "mount.(null)" :)
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 15 Sep 2009 21:00:09 +0000 (23:00 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 15 Sep 2009 21:00:09 +0000 (23:00 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
util-linux/mount.c

index 56c32e126ccbddc6650dae823c3e6af60f6e034b..478dc2409b0e1c5f2cf8e6b8c48dfc8a885e0c99 100644 (file)
@@ -448,7 +448,7 @@ static int mount_it_now(struct mntent *mp, long vfsflags, char *filteropts)
 
                // If mount failed, try
                // helper program mount.<mnt_type>
-               if (HELPERS_ALLOWED && rc) {
+               if (HELPERS_ALLOWED && rc && mp->mnt_type) {
                        char *args[8];
                        int errno_save = errno;
                        args[0] = xasprintf("mount.%s", mp->mnt_type);