From e52ae825b306b016b24124b27b33cb140fb4a311 Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Wed, 24 Sep 2008 08:42:53 +0000 Subject: - Update to 0.7.1 PR: 127570 Submitted by: "Frank W. Josellis" (maintainer) --- net/siproxd/files/patch-src__siproxd.c | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) (limited to 'net/siproxd/files/patch-src__siproxd.c') diff --git a/net/siproxd/files/patch-src__siproxd.c b/net/siproxd/files/patch-src__siproxd.c index 87f49e7f6fb0..96e56d8dc276 100644 --- a/net/siproxd/files/patch-src__siproxd.c +++ b/net/siproxd/files/patch-src__siproxd.c @@ -1,20 +1,34 @@ ---- src/siproxd.c.orig Sat Jan 19 17:06:51 2008 -+++ src/siproxd.c Mon Feb 4 16:42:25 2008 -@@ -182,10 +182,15 @@ +--- src/siproxd.c.orig 2008-02-04 21:38:47.000000000 +0100 ++++ src/siproxd.c 2008-08-29 19:37:53.000000000 +0200 +@@ -226,8 +226,6 @@ /* * Init stuff */ - INFO(PACKAGE"-"VERSION"-"BUILDSTR" "UNAME" starting up"); - /* read the config file */ - if (read_config(configfile, config_search) == STS_FAILURE) exit(1); -+ + if (read_config(configfile, config_search, main_cfg_opts, "") == STS_FAILURE) { + exit(1); +@@ -237,6 +235,13 @@ + configuration.configfile = strdup(configfile); + configuration.config_search = config_search; + + /* Don't log to stderr if daemonizing is intended. */ + if (configuration.daemonize) { + log_set_stderr(0); + } + + INFO(PACKAGE"-"VERSION"-"BUILDSTR" "UNAME" starting up"); - ++ /* if a debug level > 0 has been given on the commandline use its value and not what is in the config file */ + if (cmdline_debuglevel != 0) { +@@ -301,7 +306,7 @@ + * the jail, too. However, it will be owned by root and not deleted + * on process termination... */ + if (configuration.chrootjail && ((getuid()==0) || (geteuid()==0))) { +- if (pidfilename) createpidfile(pidfilename); ++ if (pidfilename && *pidfilename == '/') createpidfile(pidfilename); + } + + /* change user and group IDs */ -- cgit v1.2.3