This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "IPFire 2.x development tree".
The branch, next has been updated via f81179c3b21950bba2434b05a1f8b80b5567788c (commit) from 27b6a4693fe2cad3fe72c15a67fc96fb734190f0 (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- commit f81179c3b21950bba2434b05a1f8b80b5567788c Author: Arne Fitzenreiter arne_f@ipfire.org Date: Thu Mar 18 07:59:24 2010 +0100
Fix build of syslogdctrl.
-----------------------------------------------------------------------
Summary of changes: src/misc-progs/syslogdctrl.c | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-)
Difference in files: diff --git a/src/misc-progs/syslogdctrl.c b/src/misc-progs/syslogdctrl.c index 0e10e16..a470e47 100644 --- a/src/misc-progs/syslogdctrl.c +++ b/src/misc-progs/syslogdctrl.c @@ -30,7 +30,8 @@
int main(void) { - char buffer[STRING_SIZE], command[STRING_SIZE], hostname[STRING_SIZE], varmessages[STRING_SIZE]; + char buffer[STRING_SIZE], command[STRING_SIZE], hostname[STRING_SIZE]; + char varmessages[STRING_SIZE], enable_asynclog[STRING_SIZE]; int config_fd,rc,fd,pid; struct stat st; struct keyvalue *kv = NULL; @@ -62,6 +63,13 @@ int main(void) fprintf(stderr, "Cannot read REMOTELOG_ADDR\n"); exit(ERR_SETTINGS); } + + if (!findkey(kv, "ENABLE_ASYNCLOG", enable_asynclog)) + { + fprintf(stderr, "Cannot read ENABLE_ASYNCLOG\n"); + exit(ERR_SETTINGS); + } +
if (!findkey(kv, "VARMESSAGES", varmessages)) { @@ -125,7 +133,7 @@ int main(void) /* Replace the logging option*/ safe_system("grep -v '/var/log/messages' < /etc/syslog.conf.new > /etc/syslog.conf.tmp && mv /etc/syslog.conf.tmp /etc/syslog.conf.new");
- if (strcmp(ENABLE_ASYNCLOG,"on")) + if (strcmp(enable_asynclog,"on")) snprintf(command, STRING_SIZE-1, "printf '%s -/var/log/messages' >> /etc/syslog.conf.new", varmessages ); else snprintf(command, STRING_SIZE-1, "printf '%s /var/log/messages' >> /etc/syslog.conf.new", varmessages );
hooks/post-receive -- IPFire 2.x development tree