From: Denys Vlasenko Date: Thu, 10 Nov 2011 16:01:39 +0000 (+0100) Subject: mount: resolve hosts to IPs in nfs mounts X-Git-Tag: 1_20_0~145 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=39b233182c0a13200be051b993da181a1db80a87;p=oweals%2Fbusybox.git mount: resolve hosts to IPs in nfs mounts Signed-off-by: Denys Vlasenko --- diff --git a/util-linux/mount.c b/util-linux/mount.c index 7ae1981c8..807e89747 100644 --- a/util-linux/mount.c +++ b/util-linux/mount.c @@ -1729,7 +1729,7 @@ static int nfsmount(struct mntent *mp, long vfsflags, char *filteropts) end = strchr(mp->mnt_fsname, ':'); *end = '\0'; - lsa = xdotted2sockaddr(mp->mnt_fsname, /*port:*/ 0); + lsa = xhost2sockaddr(mp->mnt_fsname, /*port:*/ 0); *end = ':'; dotted = xmalloc_sockaddr2dotted_noport(&lsa->u.sa); if (ENABLE_FEATURE_CLEAN_UP) free(lsa);