From bd61d3e8c1ebf42c19024a04cdbc0c581c667e29 Mon Sep 17 00:00:00 2001 From: millert Date: Sat, 6 Jan 2018 16:26:12 +0000 Subject: [PATCH] unifdef LOGIN_CAP, we always want to use login.conf OK jca@, no objection deraadt@ --- sbin/init/Makefile | 4 ++-- sbin/init/init.c | 16 +++------------- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/sbin/init/Makefile b/sbin/init/Makefile index a40009098f7..e1e8bde4860 100644 --- a/sbin/init/Makefile +++ b/sbin/init/Makefile @@ -1,9 +1,9 @@ -# $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 diff --git a/sbin/init/init.c b/sbin/init/init.c index f3d84463815..5440d13dbc4 100644 --- a/sbin/init/init.c +++ b/sbin/init/init.c @@ -1,4 +1,4 @@ -/* $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 $ */ /*- @@ -45,6 +45,7 @@ #include #include #include +#include #include #include #include @@ -61,10 +62,6 @@ #include #endif -#ifdef LOGIN_CAP -#include -#endif - #include "pathnames.h" /* @@ -177,16 +174,11 @@ pid_t start_getty(session_t *); 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 *); @@ -1442,7 +1434,6 @@ f_death(void) return single_user; } -#ifdef LOGIN_CAP void setprocresources(char *class) { @@ -1454,4 +1445,3 @@ setprocresources(char *class) login_close(lc); } } -#endif -- 2.20.1