Skip to content

Commit 862dd18

Browse files
committed
Merge remote-tracking branch 'upstream/master' into enum_dirperms_default_path
Conflicts: modules/post/windows/gather/enum_dirperms.rb
2 parents 5270487 + 222af8c commit 862dd18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/post/windows/gather/enum_dirperms.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def enum_subdirs(perm_filter, dpath, maxdepth, token)
111111
realpath = dpath + '\\' + d
112112
if session.fs.file.stat(realpath).directory?
113113
perm = check_dir(realpath, token)
114-
if perm_filter and perm.include?(perm_filter)
114+
if perm_filter and perm and perm.include?(perm_filter)
115115
print_status(perm + "\t" + realpath)
116116
end
117117
enum_subdirs(perm_filter, realpath, maxdepth - 1,token)

0 commit comments

Comments
 (0)