Commit 3f4e52a
committed
fix(rm): safely reopen path for parent fd in recursive dir removal
Reopen the current directory path fresh to obtain the parent file descriptor,
avoiding the use of potentially dropped `current_fd` after recursive removal steps.
This ensures robust handling of file descriptors during safe directory deletion on Linux.1 parent 0816ae3 commit 3f4e52a
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
394 | | - | |
395 | 394 | | |
396 | 395 | | |
397 | 396 | | |
| |||
438 | 437 | | |
439 | 438 | | |
440 | 439 | | |
441 | | - | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
442 | 444 | | |
443 | 445 | | |
0 commit comments