mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-02 09:18:31 +00:00
Prepend getcwd to exename early in init (#1048)
This commit is contained in:
parent
2f89c2482a
commit
68dbe5312f
5 changed files with 70 additions and 22 deletions
|
@ -172,6 +172,9 @@ wontreturn textstartup void cosmo(long *sp, struct Syslib *m1, char *exename,
|
|||
// initialize file system
|
||||
__init_fds(argc, argv, envp);
|
||||
|
||||
// prepend cwd to executable path
|
||||
__init_program_executable_name();
|
||||
|
||||
__enable_tls();
|
||||
|
||||
#if 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue