diff options
author | JozanLeClerc <JozanLeClerc@noemail.net> | 2020-11-18 17:18:29 +0000 |
---|---|---|
committer | JozanLeClerc <JozanLeClerc@noemail.net> | 2020-11-18 17:18:29 +0000 |
commit | b4ca1c535b5a60fd001ac236473dea60ef2cc11b (patch) | |
tree | 78552a1f2804fc90df4610de9d3a019798b32f86 /src | |
parent | In progress (diff) | |
download | bsdsetsid-b4ca1c535b5a60fd001ac236473dea60ef2cc11b.tar.gz bsdsetsid-b4ca1c535b5a60fd001ac236473dea60ef2cc11b.tar.bz2 bsdsetsid-b4ca1c535b5a60fd001ac236473dea60ef2cc11b.tar.xz bsdsetsid-b4ca1c535b5a60fd001ac236473dea60ef2cc11b.tar.zst bsdsetsid-b4ca1c535b5a60fd001ac236473dea60ef2cc11b.zip |
I can read argv and envp now
FossilOrigin-Name: ed1a354861dd972af6f64ba661477ba6d25b5864
Diffstat (limited to 'src')
-rw-r--r-- | src/c_bsdsetsid.S | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/c_bsdsetsid.S b/src/c_bsdsetsid.S index 55807e1..29eacdc 100644 --- a/src/c_bsdsetsid.S +++ b/src/c_bsdsetsid.S @@ -4,7 +4,8 @@ c_main: movq $0x1, %rdi xorq %rcx, %rcx - movq 8(%rsp, %rcx, 8), %rsi + inc %rcx + movq (%rdx, %rcx, 8), %rsi movq $0xa, %rdx movb $0x4, %al syscall |