_PATH_NOLOGIN
if (stat(_PATH_NOLOGIN, &sb) == 0) {
nologin = _PATH_NOLOGIN;
if ((fp = fopen(_PATH_NOLOGIN, "r")) != NULL) {
if (unveil(_PATH_NOLOGIN, "wc") == -1)
err(1, "unveil %s", _PATH_NOLOGIN);
(void)unlink(_PATH_NOLOGIN); /* in case linked to another file */
if ((logfd = open(_PATH_NOLOGIN, O_WRONLY|O_CREAT|O_TRUNC,
(void)unlink(_PATH_NOLOGIN);
char buf[1024], *nl, *def_nl = _PATH_NOLOGIN;
if (unveil(_PATH_NOLOGIN, "r") == -1)
err(1, "unveil %s", _PATH_NOLOGIN);
if (unveil(_PATH_NOLOGIN, "r") == -1)
err(1, "unveil %s", _PATH_NOLOGIN);