You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 6, 2024. It is now read-only.
subcmd.add_argument("--orphans", default=False, action='store_true', help="check for shares already marked as orphans")
100
+
subcmd.add_argument("--public-links", default=False, action='store_true', help="Check public links as well (if not, it will only check internal shares)")
100
101
subcmd.add_argument("shares_owner", help="'-' to check all users in the system")
101
102
102
103
subcmd=subparser.add_parser('remove-orphan-xbits', help="remove xbits which were set in the initial implementation in the parent ACLs")
# this is the expected ACL entry in the shared directory tree
186
-
acl=cernbox_utils.sharing.share2acl(s)
194
+
ifs.share_type!=3:
195
+
# this is the expected ACL entry in the shared directory tree
196
+
acl=cernbox_utils.sharing.share2acl(s)
187
197
188
-
shared_fids.setdefault(fid,[]).append(acl)
198
+
shared_fids.setdefault(fid,[]).append(acl)
189
199
190
-
p=os.path.normpath(f.file)+"/"# append trailing slash, otherwise directories which basename is a substring give false positive, e.g.: /eos/user/k/kuba/tmp.readonly /eos/user/k/kuba/tmp
191
-
p=p.decode('utf8')
192
-
shared_paths[p] =fid
193
-
shared_acls.setdefault(p,[]).append(acl)
200
+
p=os.path.normpath(f.file)+"/"# append trailing slash, otherwise directories which basename is a substring give false positive, e.g.: /eos/user/k/kuba/tmp.readonly /eos/user/k/kuba/tmp
201
+
p=p.decode('utf8')
202
+
shared_paths[p] =fid
203
+
shared_acls.setdefault(p,[]).append(acl)
194
204
195
205
196
206
logger.info("Expected shared paths with visibility to others (%s)",len(shared_acls))
0 commit comments