[pve-devel] [PATCH] Fix nfsscan

Wolfgang Link w.link at proxmox.com
Tue Jun 9 10:01:48 CEST 2015


Signed-off-by: Wolfgang Link <w.link at proxmox.com>
---
 PVE/Storage.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/Storage.pm b/PVE/Storage.pm
index c1cf524..dee0d59 100755
--- a/PVE/Storage.pm
+++ b/PVE/Storage.pm
@@ -937,7 +937,7 @@ sub resolv_server {
 	$packed_ip = (PVE::Tools::unpack_sockaddr_in46($res[0]->{addr}))[2];
     };
     if (defined $packed_ip) {
-	return inet_ntop($family, $packed_ip);
+	return Socket::inet_ntop($family, $packed_ip);
     }
     return undef;
 }
-- 
2.1.4





More information about the pve-devel mailing list