Rather than use the gcc -fno-builtin-log flag, just rename the 'int log'
variable.
This commit is contained in:
parent
e6809a8b87
commit
282762c918
@ -9,7 +9,6 @@ SRCS= inetd.c builtins.c
|
||||
WARNS?= 2
|
||||
CFLAGS+= -DLOGIN_CAP
|
||||
#CFLAGS+= -DSANITY_CHECK
|
||||
CFLAGS+= -fno-builtin-log
|
||||
|
||||
DPADD= ${LIBUTIL} ${LIBWRAP}
|
||||
LDADD= -lutil -lwrap
|
||||
|
@ -252,7 +252,7 @@ int deny_severity;
|
||||
int wrap_ex = 0;
|
||||
int wrap_bi = 0;
|
||||
int debug = 0;
|
||||
int log = 0;
|
||||
int dolog = 0;
|
||||
int maxsock; /* highest-numbered descriptor */
|
||||
fd_set allsock;
|
||||
int options;
|
||||
@ -359,7 +359,7 @@ main(int argc, char **argv)
|
||||
options |= SO_DEBUG;
|
||||
break;
|
||||
case 'l':
|
||||
log = 1;
|
||||
dolog = 1;
|
||||
break;
|
||||
case 'R':
|
||||
getvalue(optarg, &toomany,
|
||||
@ -647,7 +647,7 @@ main(int argc, char **argv)
|
||||
}
|
||||
} else
|
||||
ctrl = sep->se_fd;
|
||||
if (log && !ISWRAP(sep)) {
|
||||
if (dolog && !ISWRAP(sep)) {
|
||||
char pname[INET6_ADDRSTRLEN] = "unknown";
|
||||
socklen_t sl;
|
||||
sl = sizeof peermax;
|
||||
@ -766,7 +766,7 @@ main(int argc, char **argv)
|
||||
_exit(0);
|
||||
}
|
||||
}
|
||||
if (log) {
|
||||
if (dolog) {
|
||||
syslog(allow_severity,
|
||||
"connection from %.500s, service %s (%s%s)",
|
||||
eval_client(&req), service, sep->se_proto,
|
||||
|
Loading…
Reference in New Issue
Block a user