1 parent f80a959 commit f168ba2Copy full SHA for f168ba2
1 file changed
bin/fm-checkout-lock-lib.sh
@@ -375,14 +375,9 @@ root_device = opened.st_dev
375
# Descendant validation is point-in-time. Reopen each queued relative path
376
# from the retained root, validating every component descriptor-relatively,
377
# 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
-]
+# remains bound across exec. Start with the root so every descendant is queued
+# by this one descriptor-relative validation path.
+pending = [()]
386
while pending:
387
relative = pending.pop()
388
directory_fd = descriptor
0 commit comments