Default xcreate/xopen to O_CLOEXEC. (Pass O_CLOEXEC in the flags to switch it back...
authorRob Landley <rob@landley.net>
Sat, 26 Jul 2014 18:27:07 +0000 (13:27 -0500)
committerRob Landley <rob@landley.net>
Sat, 26 Jul 2014 18:27:07 +0000 (13:27 -0500)
commitccb73f8bf9191c01c90975958a210c47175bd98c
tree135401e239d48af41faabf2fc484d05be1dbde71
parentdc62a012d7ce3e9a397e28022ab1fb6568a867c2
Default xcreate/xopen to O_CLOEXEC. (Pass O_CLOEXEC in the flags to switch it back off.)

This way we're not leaking filehandles to children from things like find -exec.
lib/dirtree.c
lib/xwrap.c