Prepend getcwd to exename early in init (#1048)

This commit is contained in:
Jōshin 2024-01-01 10:23:23 -05:00 committed by GitHub
parent 2f89c2482a
commit 68dbe5312f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 70 additions and 22 deletions

View file

@ -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