Date: Thu, 24 Sep 2015 00:54:47 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r288164 - stable/10/usr.bin/login Message-ID: <201509240054.t8O0slSh036281@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: delphij Date: Thu Sep 24 00:54:46 2015 New Revision: 288164 URL: https://svnweb.freebsd.org/changeset/base/288164 Log: MFC r287634: login.c doesn't really need libutil.h, don't include it. login_fbtab.c includes paths.h and pathnames.h, and pathnames.h includes paths.h. Eliminate the paths.h inclusion in login_fbtab.c. Modified: stable/10/usr.bin/login/login.c stable/10/usr.bin/login/login_fbtab.c Directory Properties: stable/10/ (props changed) Modified: stable/10/usr.bin/login/login.c ============================================================================== --- stable/10/usr.bin/login/login.c Thu Sep 24 00:50:17 2015 (r288163) +++ stable/10/usr.bin/login/login.c Thu Sep 24 00:54:46 2015 (r288164) @@ -63,7 +63,6 @@ __FBSDID("$FreeBSD$"); #include <err.h> #include <errno.h> #include <grp.h> -#include <libutil.h> #include <login_cap.h> #include <pwd.h> #include <setjmp.h> Modified: stable/10/usr.bin/login/login_fbtab.c ============================================================================== --- stable/10/usr.bin/login/login_fbtab.c Thu Sep 24 00:50:17 2015 (r288163) +++ stable/10/usr.bin/login/login_fbtab.c Thu Sep 24 00:54:46 2015 (r288164) @@ -65,7 +65,6 @@ __FBSDID("$FreeBSD$"); #include <sys/stat.h> #include <errno.h> #include <glob.h> -#include <paths.h> #include <stdio.h> #include <string.h> #include <syslog.h> @@ -120,7 +119,7 @@ login_fbtab(char *tty, uid_t uid, gid_t /* login_protect - protect one device entry */ -void +static void login_protect(const char *table, char *pattern, int mask, uid_t uid, gid_t gid) { glob_t gl;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509240054.t8O0slSh036281>