termux-packages/packages/git/disable_daemon_syslog.patch

26 lines
624 B
Diff
Raw Normal View History

2018-04-04 00:09:18 +02:00
diff -u -r ../git-2.17.0/daemon.c ./daemon.c
--- ../git-2.17.0/daemon.c 2018-04-02 19:44:04.000000000 +0200
+++ ./daemon.c 2018-04-03 23:10:19.566140810 +0200
@@ -82,9 +82,11 @@
2015-06-13 01:03:31 +02:00
{
2018-04-04 00:09:18 +02:00
switch (log_destination) {
case LOG_DESTINATION_SYSLOG: {
2015-06-13 01:03:31 +02:00
+ /*
char buf[1024];
vsnprintf(buf, sizeof(buf), err, params);
syslog(priority, "%s", buf);
+ */
2018-04-04 00:09:18 +02:00
break;
}
case LOG_DESTINATION_STDERR:
@@ -1432,7 +1434,9 @@
}
if (log_destination == LOG_DESTINATION_SYSLOG) {
+ /*
openlog("git-daemon", LOG_PID, LOG_DAEMON);
+ */
set_die_routine(daemon_die);
} else
/* avoid splitting a message in the middle */