From 433b9ac976fa739fbdc61b17b339fef3f72b7b01 Mon Sep 17 00:00:00 2001 From: Drahflow Date: Wed, 7 Jan 2015 22:42:35 +0100 Subject: Removed redundant code in execve --- elymas/lib/sys/linux.ey | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/elymas/lib/sys/linux.ey b/elymas/lib/sys/linux.ey index f5ce570..682dc61 100644 --- a/elymas/lib/sys/linux.ey +++ b/elymas/lib/sys/linux.ey @@ -339,9 +339,8 @@ # 1 -> an array of strings determining argv # 2 -> path to executable # 0 <- raw return value (if it returns at all, naturally) - { ==env ==arg # ==path - [ arg { sys .asm .rawAddress 24 add bin .produce .u64 } each "\0\0\0\0\0\0\0\0" ] |cat fold - [ env { sys .asm .rawAddress 24 add bin .produce .u64 } each "\0\0\0\0\0\0\0\0" ] |cat fold + { # ==env ==arg ==path + { [ -01 { sys .asm .rawAddress 24 add bin .produce .u64 } each "\0\0\0\0\0\0\0\0" ] |cat fold } -20*10* 0 0 0 EXECVE } /execve defStdSyscall -- cgit v1.2.3