diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2011-11-10 17:01:39 +0100 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-11-10 17:01:39 +0100 |
| commit | 39b233182c0a13200be051b993da181a1db80a87 (patch) | |
| tree | 0338a431ded200b44b8a0366e1c759d851d4fa9f /util-linux | |
| parent | a86e02492d7700ce8cb4108f53646dfb025c2dff (diff) | |
| download | busybox-w32-39b233182c0a13200be051b993da181a1db80a87.tar.gz busybox-w32-39b233182c0a13200be051b993da181a1db80a87.tar.bz2 busybox-w32-39b233182c0a13200be051b993da181a1db80a87.zip | |
mount: resolve hosts to IPs in nfs mounts
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux')
| -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 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) | |||
| 1729 | end = strchr(mp->mnt_fsname, ':'); | 1729 | end = strchr(mp->mnt_fsname, ':'); |
| 1730 | 1730 | ||
| 1731 | *end = '\0'; | 1731 | *end = '\0'; |
| 1732 | lsa = xdotted2sockaddr(mp->mnt_fsname, /*port:*/ 0); | 1732 | lsa = xhost2sockaddr(mp->mnt_fsname, /*port:*/ 0); |
| 1733 | *end = ':'; | 1733 | *end = ':'; |
| 1734 | dotted = xmalloc_sockaddr2dotted_noport(&lsa->u.sa); | 1734 | dotted = xmalloc_sockaddr2dotted_noport(&lsa->u.sa); |
| 1735 | if (ENABLE_FEATURE_CLEAN_UP) free(lsa); | 1735 | if (ENABLE_FEATURE_CLEAN_UP) free(lsa); |
