diff options
author | Vassili Tchersky <vt+git@vbc.su> | 2025-02-19 03:43:11 +0100 |
---|---|---|
committer | Bernd Schubert <bernd@bsbernd.com> | 2025-02-19 23:51:51 +0100 |
commit | 8ca2fe632de965c13d26e64dc1ff8517240a4078 (patch) | |
tree | 02fbbaa13ef28ec52560c8e678eb5a2ee5906e7c /.github/workflows/checkpatch.yml | |
parent | 26b0e0ee2522d88a093204433aad72da0d44cb26 (diff) | |
download | libfuse-8ca2fe632de965c13d26e64dc1ff8517240a4078.tar.gz |
mount: fix closing stdout/err and error logs
Don't spawn a setuid children with FD 1&2 closed.
Check status and not errno after posix_spawn(p).
Add comments to fix later error checking, as
posix_spawn(p) returns non-zero status only if
clone/vfork/rfork fails. If only setup (open, dup2)
or execve fails, the forked process exit with 127
but posix_spawn returns zero.
Signed-off-by: Vassili Tchersky <vt+git@vbc.su>
Diffstat (limited to '.github/workflows/checkpatch.yml')
0 files changed, 0 insertions, 0 deletions