mount: do not execute "mount.(null)" :)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
772c2db971
commit
ba98603264
@ -448,7 +448,7 @@ static int mount_it_now(struct mntent *mp, long vfsflags, char *filteropts)
|
|||||||
|
|
||||||
// If mount failed, try
|
// If mount failed, try
|
||||||
// helper program mount.<mnt_type>
|
// helper program mount.<mnt_type>
|
||||||
if (HELPERS_ALLOWED && rc) {
|
if (HELPERS_ALLOWED && rc && mp->mnt_type) {
|
||||||
char *args[8];
|
char *args[8];
|
||||||
int errno_save = errno;
|
int errno_save = errno;
|
||||||
args[0] = xasprintf("mount.%s", mp->mnt_type);
|
args[0] = xasprintf("mount.%s", mp->mnt_type);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user