Skip to content

Commit f168ba2

Browse files
committed
no-mistakes: apply CI fixes
1 parent f80a959 commit f168ba2

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

bin/fm-checkout-lock-lib.sh

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -375,14 +375,9 @@ root_device = opened.st_dev
375375
# Descendant validation is point-in-time. Reopen each queued relative path
376376
# from the retained root, validating every component descriptor-relatively,
377377
# then release its descriptor immediately after listing it. Only the root
378-
# remains bound across exec.
379-
pending = [
380-
(name,)
381-
for name in sorted(os.listdir(descriptor), reverse=True)
382-
if stat.S_ISDIR(
383-
os.stat(name, dir_fd=descriptor, follow_symlinks=False).st_mode
384-
)
385-
]
378+
# remains bound across exec. Start with the root so every descendant is queued
379+
# by this one descriptor-relative validation path.
380+
pending = [()]
386381
while pending:
387382
relative = pending.pop()
388383
directory_fd = descriptor

0 commit comments

Comments
 (0)