OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.2 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../cron/syslog_atrun.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. # Copyright (C) 1998 - 2003 Clifford Wolf
  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. # --- SDE-COPYRIGHT-NOTE-END ---
  17. --- ./misc.c.orig Sun Jun 10 14:55:07 2001
  18. +++ ./misc.c Sun Jun 10 14:54:32 2001
  19. @@ -531,8 +531,11 @@
  20. openlog(ProgramName, LOG_PID);
  21. # endif
  22. - syslog(LOG_INFO, "(%s) %s (%s)", username, event, detail);
  23. -
  24. + /* HACK: Don't create syslog messages for atrun */
  25. + if ( strcmp(username, "root") || strcmp(event, "CMD") ||
  26. + strcmp(detail, "test -x /usr/lib/atrun && /usr/lib/atrun") )
  27. + syslog(LOG_INFO, "(%s) %s (%s)\n", username, event, detail);
  28. +
  29. closelog();
  30. #endif /*SYSLOG*/