nanovms / nanos

A kernel designed to run one and only one application in a virtualized environment
https://nanos.org
Apache License 2.0
2.58k stars 133 forks source link

exec_elf_finish(): add setting of cwd for non-static executables #2036

Closed francescolavra closed 1 month ago

francescolavra commented 2 months ago

Configuration of the current working directory via the cwd attribute of the manifest was being done only for statically linked program executables. This change enables the cwd attribute to take effect also for non-static executables. In addition, a missing deallocation of the executable file buffer for non-static executables is being fixed.

Closes https://github.com/nanovms/ops/issues/1632