* 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

@ -157,7 +157,7 @@ int plugin_become_master(void)
for (i = 0; up_commands[i] && *up_commands[i]; i++)
{
f->log(3, 0, 0, "Running %s\n", up_commands[i]);
system(up_commands[i]);
int status = system(up_commands[i]);
}
return PLUGIN_RET_OK;
@ -176,6 +176,7 @@ int garden_session(sessiont *s, int flag, char *newuser)
{
char cmd[2048];
sessionidt sess;
int status;
if (!s) return 0;
if (!s->opened) return 0;
@ -191,7 +192,7 @@ int garden_session(sessiont *s, int flag, char *newuser)
f->fmtaddr(htonl(s->ip), 0));
f->log(3, sess, s->tunnel, "%s\n", cmd);
system(cmd);
status = system(cmd);
s->walled_garden = 1;
}
else
@ -229,7 +230,7 @@ int garden_session(sessiont *s, int flag, char *newuser)
f->log(3, sess, s->tunnel, "%s\n", cmd);
while (--count)
{
int status = system(cmd);
status = system(cmd);
if (WEXITSTATUS(status) != 0) break;
}
@ -272,7 +273,7 @@ int plugin_init(struct pluginfuncs *funcs)
for (i = 0; down_commands[i] && *down_commands[i]; i++)
{
f->log(3, 0, 0, "Running %s\n", down_commands[i]);
system(down_commands[i]);
int status = system(down_commands[i]);
}
}
@ -289,7 +290,7 @@ void plugin_done()
for (i = 0; down_commands[i] && *down_commands[i]; i++)
{
f->log(3, 0, 0, "Running %s\n", down_commands[i]);
system(down_commands[i]);
int status = system(down_commands[i]);
}
}