-# $OpenBSD: Makefile,v 1.9 2015/09/25 16:09:09 tedu Exp $
+# $OpenBSD: Makefile,v 1.10 2018/01/06 16:26:12 millert Exp $
PROG= init
MAN= init.8
DPADD= ${LIBUTIL}
LDADD= -lutil
-CFLAGS+=-DDEBUGSHELL -DSECURE -DLOGIN_CAP
+CFLAGS+=-DDEBUGSHELL -DSECURE
.include <bsd.prog.mk>
-/* $OpenBSD: init.c,v 1.65 2017/06/16 06:46:54 natano Exp $ */
+/* $OpenBSD: init.c,v 1.66 2018/01/06 16:26:12 millert Exp $ */
/* $NetBSD: init.c,v 1.22 1996/05/15 23:29:33 jtc Exp $ */
/*-
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
+#include <login_cap.h>
#include <signal.h>
#include <stdarg.h>
#include <stdio.h>
#include <readpassphrase.h>
#endif
-#ifdef LOGIN_CAP
-#include <login_cap.h>
-#endif
-
#include "pathnames.h"
/*
void transition_handler(int);
void alrm_handler(int);
void setsecuritylevel(int);
+void setprocresources(char *);
int getsecuritylevel(void);
int setupargv(session_t *, struct ttyent *);
int clang;
-#ifdef LOGIN_CAP
-void setprocresources(char *);
-#else
-#define setprocresources(p)
-#endif
-
void clear_session_logs(session_t *);
void add_session(session_t *);
return single_user;
}
-#ifdef LOGIN_CAP
void
setprocresources(char *class)
{
login_close(lc);
}
}
-#endif