diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-15 23:00:09 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-15 23:00:09 +0200 |
commit | ba98603264125aceac59c36a36dfbee0f7f67c7f (patch) | |
tree | 364bbad65a97c5029805fcff9ee3603975631af6 | |
parent | 772c2db9716f2aa255a5316b3435899b00483dde (diff) | |
download | busybox-w32-ba98603264125aceac59c36a36dfbee0f7f67c7f.tar.gz busybox-w32-ba98603264125aceac59c36a36dfbee0f7f67c7f.tar.bz2 busybox-w32-ba98603264125aceac59c36a36dfbee0f7f67c7f.zip |
mount: do not execute "mount.(null)" :)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-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) | |||
448 | 448 | ||
449 | // If mount failed, try | 449 | // If mount failed, try |
450 | // helper program mount.<mnt_type> | 450 | // helper program mount.<mnt_type> |
451 | if (HELPERS_ALLOWED && rc) { | 451 | if (HELPERS_ALLOWED && rc && mp->mnt_type) { |
452 | char *args[8]; | 452 | char *args[8]; |
453 | int errno_save = errno; | 453 | int errno_save = errno; |
454 | args[0] = xasprintf("mount.%s", mp->mnt_type); | 454 | args[0] = xasprintf("mount.%s", mp->mnt_type); |