aboutsummaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
Diffstat (limited to 'win32')
-rw-r--r--win32/process.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/win32/process.c b/win32/process.c
index 1c409a20e..e9b34b56d 100644
--- a/win32/process.c
+++ b/win32/process.c
@@ -216,12 +216,10 @@ spawnveq(int mode, const char *path, char *const *argv, char *const *env)
216 if (stat(path, &st) == 0) { 216 if (stat(path, &st) == 0) {
217 if (!S_ISREG(st.st_mode) || !(st.st_mode&S_IXUSR)) { 217 if (!S_ISREG(st.st_mode) || !(st.st_mode&S_IXUSR)) {
218 errno = EACCES; 218 errno = EACCES;
219 goto error; 219 return -1;
220 } 220 }
221 } 221 }
222 else { 222 else {
223 error:
224 fprintf(stderr, "spawnveq: %s: %s\n", path, strerror(errno));
225 return -1; 223 return -1;
226 } 224 }
227 225