File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
- refs/heads/try: 635b55100c37906ac53a9130873d9392e545e6e7
5
+ refs/heads/try: e9503131556656d7ae0ad583b9d9ed81755a3746
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
Original file line number Diff line number Diff line change @@ -163,19 +163,15 @@ rust_run_program(const char* argv[],
163
163
assert (!result && " chdir failed" );
164
164
}
165
165
166
- #ifdef __APPLE__
167
166
if (envp) {
167
+ #ifdef __APPLE__
168
168
*_NSGetEnviron () = (char **)envp;
169
- }
170
- execvp (argv[0 ], (char * const *)argv);
171
- #elif __FreeBSD__ || (defined(__linux__) && defined(RUST_SNAPSHOT))
172
- if (envp) { environ = (char **)envp; }
173
- execvp (argv[0 ], (char * const *)argv);
174
169
#else
175
- if (!envp) { envp = environ; }
176
- execvpe (argv[0 ], (char * const *)argv, (char * const *)envp);
170
+ environ = (char **)envp;
177
171
#endif
172
+ }
178
173
174
+ execvp (argv[0 ], (char * const *)argv);
179
175
exit (1 );
180
176
}
181
177
You can’t perform that action at this time.
0 commit comments