X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=utils%2Fmount%2Fmount.c;h=21946f727990af960e72ca2ad768b91adf134388;hb=8bf52a86b3f55781ceafe830ca27f8d294b7251d;hp=e6222317530da30c1ad56e2a217861d60cc2cdab;hpb=6826dcf4e9e00f466ecaeeb8369dc7308df36a86;p=nfs-utils.git diff --git a/utils/mount/mount.c b/utils/mount/mount.c index e622231..21946f7 100644 --- a/utils/mount/mount.c +++ b/utils/mount/mount.c @@ -376,14 +376,10 @@ static int try_mount(char *spec, char *mount_point, int flags, { int ret; - if (string) { - if (strcmp(fs_type, "nfs4") == 0) - ret = nfs4mount_s(spec, mount_point, flags, - extra_opts, fake, bg); - else - ret = nfsmount_s(spec, mount_point, flags, - extra_opts, fake, bg); - } else { + if (string) + ret = nfsmount_string(spec, mount_point, fs_type, flags, + extra_opts, fake, bg); + else { if (strcmp(fs_type, "nfs4") == 0) ret = nfs4mount(spec, mount_point, flags, extra_opts, fake, bg);