mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-07 02:10:27 +00:00
Merge branch 'linux-execve' into bootstrap
This commit is contained in:
commit
7b18f07f8c
1 changed files with 3 additions and 2 deletions
|
@ -36,10 +36,11 @@ void SetUpOnce(void) {
|
|||
|
||||
__attribute__((__constructor__)) static void Child(int argc, char *argv[]) {
|
||||
static bool skiparg0tests;
|
||||
if (!__program_executable_name && !IsFreebsd() && !IsNetbsd()) {
|
||||
if (IsLinux()) {
|
||||
/* see also: https://github.com/jart/cosmopolitan/issues/1014 */
|
||||
skiparg0tests = true;
|
||||
if (argc < 2) {
|
||||
fprintf(stderr, "warning: old/no loader; skipping argv[0] tests\n");
|
||||
fprintf(stderr, "warning: skipping argv[0] tests\n");
|
||||
}
|
||||
}
|
||||
if (argc >= 2 && !strcmp(argv[1], "Child")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue