From 72cf538c60ba225dc20dcdbc2fe314cc8d3759b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Notin?= Date: Thu, 26 Sep 2019 19:19:13 +0200 Subject: [PATCH] nfs-get: handle "nfs://" URLs with port number and quick optim --- nfs-get.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nfs-get.py b/nfs-get.py index b1882a5..bdd84a7 100755 --- a/nfs-get.py +++ b/nfs-get.py @@ -44,7 +44,7 @@ def main(): o = urlparse(nfs_path) - host = o.netloc + host = o.hostname uri = o.path portmapper_port = 111 @@ -63,6 +63,7 @@ def main(): mount_path = mountpoint["path"] file_handle = mount.mnt(mountpoint["path"])["file_handle"] file_type = 2 + break if file_handle == None: mount.disconnect()