* Enabled hardened build flags, thanks Moritz Muehlenhoff (closes: #657846)

* Packaging updates
  * Move to 3.0 (native) source format
  * Bump DH compat level to 8
* Fix ordering of stdio.h/syslog.h includes (closes: #707385)
* Create accounting_dir in init script if necessary (closes: #418156)
* Bump Standards-Version to 3.9.4.0
  * Add build-arch/build-indep targets to debian/rules
* Fix: compiling Warning
This commit is contained in:
fendo 2013-09-16 18:22:57 +02:00
parent 26a2025a1b
commit ecdddd6065
10 changed files with 35 additions and 46 deletions

View file

@ -10,6 +10,7 @@
#include <fcntl.h>
#include <linux/if_tun.h>
#define SYSLOG_NAMES
#include <stdio.h>
#include <syslog.h>
#include <malloc.h>
#include <net/route.h>
@ -19,7 +20,6 @@
#include <netinet/ip6.h>
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <sys/ioctl.h>
@ -5050,9 +5050,9 @@ int main(int argc, char *argv[])
case 'd':
if (fork()) exit(0);
setsid();
freopen("/dev/null", "r", stdin);
freopen("/dev/null", "w", stdout);
freopen("/dev/null", "w", stderr);
FILE *in = freopen("/dev/null", "r", stdin);
FILE *out = freopen("/dev/null", "w", stdout);
FILE *err = freopen("/dev/null", "w", stderr);
break;
case 'v':
optdebug++;
@ -5103,7 +5103,7 @@ int main(int argc, char *argv[])
LOG(0, 0, 0, "Can't set ulimit: %s\n", strerror(errno));
// Make core dumps go to /tmp
chdir("/tmp");
int ret = chdir("/tmp");
}
if (config->scheduler_fifo)