diff options
author | Vassili Tchersky <vt+git@vbc.su> | 2025-02-19 03:43:11 +0100 |
---|---|---|
committer | Bernd Schubert <bernd@bsbernd.com> | 2025-02-20 18:25:58 +0100 |
commit | 239b40db654823a64b1f4a0098525bcceea30bc7 (patch) | |
tree | 7779826e20e7a5617cad1fe11b67d4ffe65a21fb /example/hello.c | |
parent | 97a2e538d7b11e2480b8b90f60e505cb0aa28428 (diff) | |
download | libfuse-239b40db654823a64b1f4a0098525bcceea30bc7.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 'example/hello.c')
0 files changed, 0 insertions, 0 deletions