Skip to content

Commit a437661

Browse files
committed
Handle NT_STATUS_NO_SUCH_FILE
1 parent d358e7d commit a437661

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

enum4linux-ng.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2009,7 +2009,10 @@ def check_access(self, share):
20092009
if "tree connect failed: NT_STATUS_ACCESS_DENIED" in result.retmsg:
20102010
return Result({"mapping":"denied", "listing":"n/a"}, "Mapping: DENIED, Listing: N/A")
20112011

2012-
if "NT_STATUS_INVALID_INFO_CLASS" in result.retmsg or "NT_STATUS_NETWORK_ACCESS_DENIED" in result.retmsg or "NT_STATUS_NOT_A_DIRECTORY" in result.retmsg:
2012+
if "NT_STATUS_INVALID_INFO_CLASS" in result.retmsg\
2013+
or "NT_STATUS_NETWORK_ACCESS_DENIED" in result.retmsg\
2014+
or "NT_STATUS_NOT_A_DIRECTORY" in result.retmsg\
2015+
or "NT_STATUS_NO_SUCH_FILE" in result.retmsg:
20132016
return Result({"mapping":"ok", "listing":"not supported"}, "Mapping: OK, Listing: NOT SUPPORTED")
20142017

20152018
if "NT_STATUS_OBJECT_NAME_NOT_FOUND" in result.retmsg:

0 commit comments

Comments
 (0)