]> git.cameronkatri.com Git - pw-darwin.git/blobdiff - libutil/login_cap.c
Clean up more usb related files when MK_USB == no when dealing with
[pw-darwin.git] / libutil / login_cap.c
index 8fee76050b04177ea10a6999793390d6b7f79ec3..8915d0af279e8636b0990e9eaa977a8700dad13c 100644 (file)
@@ -239,7 +239,7 @@ login_getclassbyname(char const *name, const struct passwd *pwd)
                break;  /* Don't retry default on 'me' */
            if (i == 0)
                r = -1;
-           else if ((r = open(login_dbarray[0], O_RDONLY)) >= 0)
+           else if ((r = open(login_dbarray[0], O_RDONLY | O_CLOEXEC)) >= 0)
                close(r);
            /*
             * If there's at least one login class database,