diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-16 01:00:09 +0400 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-16 01:00:09 +0400 |
commit | ba98603264125aceac59c36a36dfbee0f7f67c7f (patch) | |
tree | 364bbad65a97c5029805fcff9ee3603975631af6 /util-linux/mount.c | |
parent | 772c2db9716f2aa255a5316b3435899b00483dde (diff) |
mount: do not execute "mount.(null)" :)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/mount.c')
-rw-r--r-- | util-linux/mount.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c index 56c32e126..478dc2409 100644 --- a/util-linux/mount.c +++ b/util-linux/mount.c @@ -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); |