mount: do not execute "mount.(null)" :)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2009-09-15 23:00:09 +02:00
parent 772c2db971
commit ba98603264

View 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);