403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.89
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/dns/dnsreflector/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/dns/dnsreflector/files/patch-dnsreflector.c
--- dnsreflector.c.orig	2009-05-30 14:02:43.000000000 +0300
+++ dnsreflector.c	2009-05-30 14:04:31.000000000 +0300
@@ -87,8 +87,7 @@
 
 #define MAXQUERY (PACKETSZ - sizeof(ADDITIONAL) - sizeof(AUTHORITY) - sizeof(ANSWER_AAAA))
 
-static struct syslog_data sdata = SYSLOG_DATA_INIT;
-
+static int daemonize = 0;
 static void
 logit(int level, const char *fmt, ...)
 {
@@ -97,8 +96,8 @@
 
 	va_start(ap, fmt);
 
-	if (sdata.opened) {
-		vsyslog_r(level, &sdata, fmt, ap);
+	if (daemonize) {
+		vsyslog(level, fmt, ap);
 	} else {
 		fprintf(stderr, "%s: ", __progname);
 		vfprintf(stderr, fmt, ap);
@@ -148,7 +147,6 @@
 
 	/* Options and their defaults */
 	char *address = NULL;
-	int daemonize = 0;
 	int port = 53000;
 
 	/* Process commandline arguments */
@@ -186,8 +184,6 @@
 	/* Use syslog if daemonized */
 	if (daemonize) {
 		tzset();
-		openlog_r("dnsreflector", LOG_PID | LOG_NDELAY, LOG_DAEMON,
-		    &sdata);
 	}
 
 	/* Daemonize if requested */

Youez - 2016 - github.com/yon3zu
LinuXploit