Commit f8fc853
gh-104522: Fix OSError raised when run a subprocess (GH-114195)
Only set filename to cwd if it was caused by failed chdir(cwd).
_fork_exec() now returns "noexec:chdir" for failed chdir(cwd).
(cherry picked from commit e2c097e)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Robert O'Shea <PurityLake@users.noreply.github.com>
1 parent 2c9cf64 commit f8fc853
File tree
4 files changed
+29
-18
lines changed- Lib
- test
- Misc/NEWS.d/next/Library
- Modules
4 files changed
+29
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1938 | 1938 | | |
1939 | 1939 | | |
1940 | 1940 | | |
1941 | | - | |
1942 | | - | |
| 1941 | + | |
1943 | 1942 | | |
1944 | 1943 | | |
1945 | 1944 | | |
| 1945 | + | |
| 1946 | + | |
| 1947 | + | |
1946 | 1948 | | |
1947 | 1949 | | |
1948 | 1950 | | |
1949 | 1951 | | |
1950 | | - | |
| 1952 | + | |
| 1953 | + | |
| 1954 | + | |
| 1955 | + | |
1951 | 1956 | | |
1952 | 1957 | | |
1953 | 1958 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2032 | 2032 | | |
2033 | 2033 | | |
2034 | 2034 | | |
2035 | | - | |
2036 | | - | |
| 2035 | + | |
| 2036 | + | |
2037 | 2037 | | |
2038 | 2038 | | |
2039 | 2039 | | |
| 2040 | + | |
2040 | 2041 | | |
2041 | 2042 | | |
2042 | 2043 | | |
| |||
2080 | 2081 | | |
2081 | 2082 | | |
2082 | 2083 | | |
2083 | | - | |
2084 | | - | |
| 2084 | + | |
| 2085 | + | |
2085 | 2086 | | |
2086 | 2087 | | |
2087 | 2088 | | |
| |||
2129 | 2130 | | |
2130 | 2131 | | |
2131 | 2132 | | |
2132 | | - | |
| 2133 | + | |
| 2134 | + | |
2133 | 2135 | | |
2134 | 2136 | | |
2135 | 2137 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
589 | 589 | | |
590 | 590 | | |
591 | 591 | | |
592 | | - | |
| 592 | + | |
593 | 593 | | |
594 | | - | |
| 594 | + | |
| 595 | + | |
595 | 596 | | |
596 | 597 | | |
597 | 598 | | |
| |||
651 | 652 | | |
652 | 653 | | |
653 | 654 | | |
654 | | - | |
655 | | - | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
656 | 661 | | |
657 | 662 | | |
658 | 663 | | |
| |||
699 | 704 | | |
700 | 705 | | |
701 | 706 | | |
702 | | - | |
| 707 | + | |
703 | 708 | | |
704 | 709 | | |
705 | 710 | | |
| |||
757 | 762 | | |
758 | 763 | | |
759 | 764 | | |
760 | | - | |
761 | | - | |
762 | | - | |
763 | | - | |
764 | 765 | | |
765 | 766 | | |
766 | 767 | | |
767 | 768 | | |
768 | | - | |
769 | 769 | | |
| 770 | + | |
770 | 771 | | |
771 | 772 | | |
772 | 773 | | |
| |||
0 commit comments