Move interface-related defines to interfaces.h so we don't have to include

<netinet/in.h> everywhere.
This commit is contained in:
Todd C. Miller
1999-05-17 01:36:30 +00:00
parent 850a52aa6f
commit 80287c981c
22 changed files with 109 additions and 108 deletions

7
sudo.c
View File

@@ -77,6 +77,7 @@
#endif /* HAVE_KERB5 */
#include "sudo.h"
#include "interfaces.h"
#include "version.h"
#ifndef STDC_HEADERS
@@ -131,8 +132,8 @@ char *shost;
char cwd[MAXPATHLEN];
FILE *sudoers_fp = NULL;
static char *runas_homedir = NULL;
extern struct interface *interfaces;
extern int num_interfaces;
struct interface *interfaces;
int num_interfaces;
extern int printmatches;
int arg_prompt = 0; /* was -p used? */
#ifdef HAVE_KERB5
@@ -869,7 +870,7 @@ check_sudoers()
(void) fprintf(stderr, "%s: fixed mode on %s\n",
Argv[0], _PATH_SUDO_SUDOERS);
if (statbuf.st_gid != SUDOERS_GID) {
if (!chown(_PATH_SUDO_SUDOERS,GID_NO_CHANGE,SUDOERS_GID)) {
if (!chown(_PATH_SUDO_SUDOERS,(uid_t) -1,SUDOERS_GID)) {
(void) fprintf(stderr, "%s: set group on %s\n",
Argv[0], _PATH_SUDO_SUDOERS);
statbuf.st_gid = SUDOERS_GID;