Change argv and envp types in execveat declaration#1218
Change argv and envp types in execveat declaration#1218trcrsired merged 9 commits intocppfastio:nextfrom
Conversation
The POSIX API is poorly designed, allowing modifiable parameters that are never actually changed in practice.
|
cooperating) programs. |
|
use const cast insteadd |
…rectness Updated the parameter types for `libc_execveat` to accept non-const pointers for `argv` and `envp`, enhancing compatibility with existing code. Adjusted calls to `libc_execveat` in `vfork_and_execveat` to use `const_cast` for proper type handling.
…SIX semantics - Updated `calculate_nt_delete_flag` to unconditionally set `FILE_FLAG_OPEN_REPARSE_POINT` flag. - Removed conditional check for `symlink_nofollow` flag as POSIX requires unlinkat() to always operate in no-follow mode. - Added comment explaining that symlinks must be unlinked as directory entries and never resolved, matching POSIX behavior.
|
@trcrsired review plz |
The POSIX API is poorly designed, allowing modifiable parameters that are never actually changed in practice.