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. MFC after: 2 weeks
This commit is contained in:
parent
1e902b3b7e
commit
60b0aa6a8f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=287634
@ -63,7 +63,6 @@ __FBSDID("$FreeBSD$");
|
|||||||
#include <err.h>
|
#include <err.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <grp.h>
|
#include <grp.h>
|
||||||
#include <libutil.h>
|
|
||||||
#include <login_cap.h>
|
#include <login_cap.h>
|
||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
#include <setjmp.h>
|
#include <setjmp.h>
|
||||||
|
@ -65,7 +65,6 @@ __FBSDID("$FreeBSD$");
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <glob.h>
|
#include <glob.h>
|
||||||
#include <paths.h>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <syslog.h>
|
#include <syslog.h>
|
||||||
@ -120,7 +119,7 @@ login_fbtab(char *tty, uid_t uid, gid_t gid)
|
|||||||
|
|
||||||
/* login_protect - protect one device entry */
|
/* login_protect - protect one device entry */
|
||||||
|
|
||||||
void
|
static void
|
||||||
login_protect(const char *table, char *pattern, int mask, uid_t uid, gid_t gid)
|
login_protect(const char *table, char *pattern, int mask, uid_t uid, gid_t gid)
|
||||||
{
|
{
|
||||||
glob_t gl;
|
glob_t gl;
|
||||||
|
Loading…
Reference in New Issue
Block a user