From 43be50983b62ff4fddbcddb32e0013a69b4be6a6 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 23 Nov 2020 18:59:16 +0000 Subject: In progress FossilOrigin-Name: 2a899506793d483080dbc3b0ae762c4d98b002b6 --- src/c_bsdsetsid.S | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/c_bsdsetsid.S b/src/c_bsdsetsid.S index 0d5278b..5b71669 100644 --- a/src/c_bsdsetsid.S +++ b/src/c_bsdsetsid.S @@ -102,7 +102,8 @@ main: jz c_child c_parent: - jmp c_exit +# jmp c_exit + jmp c_parent_old c_child: xor %rax, %rax @@ -117,9 +118,11 @@ c_child: mov $0x1, %rcx mov (%rsi, %rcx, 8), %rdi lea 0(%rsi, %rcx, 8), %rsi - movb $0x3b, %al /* SYS_execve */ - syscall - jc e_execve +# movb $0x3b, %al /* SYS_execve */ +# syscall + callq execve + test %rax, %rax + js e_execve c_exit: xor %rdi, %rdi -- cgit v1.2.3