[python] Improved to be able to build without gdbm, readline or zlib
[opensde-package-nopast.git] / base / cron / syslog_atrun.patch
blobc75b87069439f85afc0cd6bcaac9c52e7673ef09
1 # --- SDE-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # Filename: package/.../cron/syslog_atrun.patch
5 # Copyright (C) 2004 - 2006 The T2 SDE Project
6 # Copyright (C) 1998 - 2003 Clifford Wolf
8 # More information can be found in the files COPYING and README.
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 # --- SDE-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*/