[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Pass executed filename to execv[pe] unmodified when calling proc
From: |
Evan Hanson |
Subject: |
[PATCH] Pass executed filename to execv[pe] unmodified when calling process-execute |
Date: |
Sun, 4 Jun 2023 01:02:49 +0200 |
Hi there,
Earlier today I went in circles trying to figure out why a child process
was only getting the basename of the executable in argv[0], rather than
the pathname I was passing.
Turns out we do that when building the arguments to execvp, but I don't
think it's ideal, so here's a patch to leave that pathname alone.
Cheers,
Evan
0001-Pass-executed-filename-to-execv-pe-unmodified-when-c.patch
Description: Text document
- [PATCH] Pass executed filename to execv[pe] unmodified when calling process-execute,
Evan Hanson <=