summaryrefslogtreecommitdiffstats
path: root/utils/mount/mount.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/mount/mount.c')
-rw-r--r--utils/mount/mount.c12
1 files changed, 4 insertions, 8 deletions
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);