]> git.cameronkatri.com Git - pw-darwin.git/blobdiff - libutil/pw_util.c
libutil: move group_line_format into the scop of its only user.
[pw-darwin.git] / libutil / pw_util.c
index 24c0263a51f214211997102550db7e8917d1cba0..befd1fb02d701ee9f8bf67f83077073139b36dc2 100644 (file)
@@ -179,7 +179,7 @@ pw_lock(void)
        for (;;) {
                struct stat st;
 
-               lockfd = flopen(masterpasswd, O_RDONLY|O_NONBLOCK, 0);
+               lockfd = flopen(masterpasswd, O_RDONLY|O_NONBLOCK|O_CLOEXEC, 0);
                if (lockfd == -1) {
                        if (errno == EWOULDBLOCK) {
                                errx(1, "the password db file is busy");