We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3d4216 commit d86df0eCopy full SHA for d86df0e
1 file changed
nxc/protocols/nfs.py
@@ -645,15 +645,14 @@ def ls(self):
645
self.logger.fail("No root escape possible, please specify a share")
646
return
647
648
- # Update UID and GID for the share
649
- self.update_auth(mount_fh)
650
-
651
# We got a path to look up
652
curr_fh = mount_fh
653
is_file = False # If the last path is a file
654
655
# If ls is "" or "/" without filter we would get one item with [""]
656
for sub_path in list(filter(None, self.args.ls.split("/"))):
+ # Update UID and GID for the path
+ self.update_auth(curr_fh)
657
res = self.nfs3.lookup(curr_fh, sub_path, auth=self.auth)
658
659
if "resfail" in res and res["status"] == NFS3ERR_NOENT:
0 commit comments