aboutsummaryrefslogtreecommitdiff
path: root/elymas/lib/sys.ey
diff options
context:
space:
mode:
authorDrahflow <drahflow@gmx.de>2015-10-05 17:39:24 +0200
committerDrahflow <drahflow@gmx.de>2015-10-05 17:39:24 +0200
commit02618efcc90b8bcdbcd677337bd90f73cf164c28 (patch)
tree4712a248d482b8049261de2ea6209aa9786e670b /elymas/lib/sys.ey
parent3739a7e8576b299880516108d16adf33a1d5aaf9 (diff)
Correctly zero-terminate /bin/sh
Diffstat (limited to 'elymas/lib/sys.ey')
-rw-r--r--elymas/lib/sys.ey2
1 files changed, 1 insertions, 1 deletions
diff --git a/elymas/lib/sys.ey b/elymas/lib/sys.ey
index 5961fde..c702434 100644
--- a/elymas/lib/sys.ey
+++ b/elymas/lib/sys.ey
@@ -53,7 +53,7 @@
# 0 -> a shell command
{ ==cmd
- "/bin/sh" [ "sh" "-c" cmd ] "\0" |cat '*00.0 [ ] +execve ??proc.exec
+ "/bin/sh\0" [ "sh" "-c" cmd ] "\0" |cat '*00.0 [ ] +execve ??proc.exec
} /shell sys .deff
# 0 -> function to execute in the child