Dash:
[t2-trunk.git] / package / base / cron / syslog_atrun.patch
blob56b6a4116f15735ffc5a3d871bd88b438f740cf8
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../cron/syslog_atrun.patch
5 # Copyright (C) 2004 - 2005 The T2 SDE Project
6 # Copyright (C) 1998 - 2003 ROCK Linux Project
7 #
8 # More information can be found in the files COPYING and README.
9 #
10 # This patch file is dual-licensed. It is available under the license the
11 # patched project is licensed under, as long as it is an OpenSource license
12 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
13 # of the GNU General Public License as published by the Free Software
14 # Foundation; either version 2 of the License, or (at your option) any later
15 # version.
16 # --- T2-COPYRIGHT-NOTE-END ---
18 --- ./misc.c.orig Sun Jun 10 14:55:07 2001
19 +++ ./misc.c Sun Jun 10 14:54:32 2001
20 @@ -531,8 +531,11 @@
21 openlog(ProgramName, LOG_PID);
22 # endif
24 - syslog(LOG_INFO, "(%s) %s (%s)", username, event, detail);
26 + /* HACK: Don't create syslog messages for atrun */
27 + if ( strcmp(username, "root") || strcmp(event, "CMD") ||
28 + strcmp(detail, "test -x /usr/lib/atrun && /usr/lib/atrun") )
29 + syslog(LOG_INFO, "(%s) %s (%s)\n", username, event, detail);
31 closelog();
32 #endif /*SYSLOG*/