Changeset View
Changeset View
Standalone View
Standalone View
contrib/tcp_wrappers/miscd.c
Show All 37 Lines | |||||
/* Local stuff. */ | /* Local stuff. */ | ||||
#include "patchlevel.h" | #include "patchlevel.h" | ||||
#include "tcpd.h" | #include "tcpd.h" | ||||
int allow_severity = SEVERITY; /* run-time adjustable */ | int allow_severity = SEVERITY; /* run-time adjustable */ | ||||
int deny_severity = LOG_WARNING; /* ditto */ | int deny_severity = LOG_WARNING; /* ditto */ | ||||
main(argc, argv) | main(int argc, char **argv) | ||||
int argc; | |||||
char **argv; | |||||
{ | { | ||||
struct request_info request; | struct request_info request; | ||||
char path[MAXPATHNAMELEN]; | char path[MAXPATHNAMELEN]; | ||||
/* Attempt to prevent the creation of world-writable files. */ | /* Attempt to prevent the creation of world-writable files. */ | ||||
#ifdef DAEMON_UMASK | #ifdef DAEMON_UMASK | ||||
umask(DAEMON_UMASK); | umask(DAEMON_UMASK); | ||||
▲ Show 20 Lines • Show All 64 Lines • Show Last 20 Lines |