Commit 53a67ed
src: fix bad logic in uid/gid checks
Pointed out by Coverity. Introduced in commits 3546383 ("process_wrap:
avoid leaking memory when throwing due to invalid arguments") and
fa4eb47 ("bindings: add spawn_sync bindings").
The return statements inside the if blocks were dead code because their
guard conditions always evaluated to false. Remove them.
PR-URL: #7374
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>1 parent e6a27a7 commit 53a67edCopy full SHA for 53a67ed
File tree
Expand file treeCollapse file tree
3 files changed
+11
-37
lines changedOpen diff view settings
Filter options
- src
Expand file treeCollapse file tree
3 files changed
+11
-37
lines changedOpen diff view settings
Collapse file
+4-10Lines changed: 4 additions & 10 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
120 | 120 | |
121 | 121 | |
122 | 122 | |
123 | | - |
124 | | - |
125 | | - |
126 | | - |
| 123 | + |
127 | 124 | |
128 | | - |
| 125 | + |
129 | 126 | |
130 | 127 | |
131 | 128 | |
132 | 129 | |
133 | 130 | |
134 | 131 | |
135 | 132 | |
136 | | - |
137 | | - |
138 | | - |
139 | | - |
| 133 | + |
140 | 134 | |
141 | | - |
| 135 | + |
142 | 136 | |
143 | 137 | |
144 | 138 | |
|
Collapse file
+7-26Lines changed: 7 additions & 26 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
729 | 729 | |
730 | 730 | |
731 | 731 | |
732 | | - |
| 732 | + |
733 | 733 | |
734 | | - |
| 734 | + |
| 735 | + |
735 | 736 | |
736 | 737 | |
737 | 738 | |
738 | 739 | |
739 | 740 | |
740 | | - |
| 741 | + |
741 | 742 | |
742 | | - |
| 743 | + |
| 744 | + |
743 | 745 | |
744 | 746 | |
745 | 747 | |
| ||
763 | 765 | |
764 | 766 | |
765 | 767 | |
766 | | - |
| 768 | + |
767 | 769 | |
768 | 770 | |
769 | 771 | |
| ||
915 | 917 | |
916 | 918 | |
917 | 919 | |
918 | | - |
919 | | - |
920 | | - |
921 | | - |
922 | | - |
923 | | - |
924 | | - |
925 | | - |
926 | | - |
927 | | - |
928 | | - |
929 | | - |
930 | | - |
931 | | - |
932 | | - |
933 | | - |
934 | | - |
935 | | - |
936 | | - |
937 | | - |
938 | | - |
939 | 920 | |
940 | 921 | |
941 | 922 | |
|
Collapse file
-1Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
173 | 173 | |
174 | 174 | |
175 | 175 | |
176 | | - |
177 | 176 | |
178 | 177 | |
179 | 178 | |
|
0 commit comments