summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2016-05-20 19:24:43 +0200
committerDave Andreoli <dave@gurumeditation.it>2016-05-20 19:25:42 +0200
commit107872af9182e5bcc1a72c6eb770f15d1a93a8d4 (patch)
tree406041479dfe5f811240e1c5563395c13629a321
parente5e875ded86a59469ac6eebb45a9cbb6f36f4c20 (diff)
downloadenlightenment-107872af9182e5bcc1a72c6eb770f15d1a93a8d4.tar.gz
enlightenment_open: correctly return the exist status code of the executed command
@fix and close T3555
-rw-r--r--src/bin/e_open.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/e_open.c b/src/bin/e_open.c
index 045fa763cf..fa787e8259 100644
--- a/src/bin/e_open.c
+++ b/src/bin/e_open.c
@@ -8,6 +8,7 @@
#include <unistd.h>
#include <ctype.h>
#include <errno.h>
+#include <sys/wait.h>
# ifdef E_API
# undef E_API
@@ -562,7 +563,7 @@ main(int argc, char *argv[])
}
free(cmds);
- return ret;
+ return WEXITSTATUS(ret);
}
}