diff options
Diffstat (limited to 'meta/recipes-extended/shadow/files/disable_syslog.patch')
-rw-r--r-- | meta/recipes-extended/shadow/files/disable_syslog.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/meta/recipes-extended/shadow/files/disable_syslog.patch b/meta/recipes-extended/shadow/files/disable_syslog.patch new file mode 100644 index 0000000000..7299a8e61c --- /dev/null +++ b/meta/recipes-extended/shadow/files/disable_syslog.patch | |||
@@ -0,0 +1,22 @@ | |||
1 | When building images using shadow-native, we shouldn't be spamming the host's | ||
2 | log with lots of syslog messages which aren't relavent. Disable syslog use | ||
3 | in the native case. | ||
4 | |||
5 | Upstream-Status: Inappropriate [Would upstream accept a configure option?] | ||
6 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
7 | |||
8 | Index: shadow-4.17.2/lib/defines.h | ||
9 | =================================================================== | ||
10 | --- shadow-4.17.2.orig/lib/defines.h | ||
11 | +++ shadow-4.17.2/lib/defines.h | ||
12 | @@ -88,7 +88,9 @@ | ||
13 | |||
14 | /* cleaner than lots of #ifdefs everywhere - use this as follows: | ||
15 | SYSLOG((LOG_CRIT, "user %s cracked root", user)); */ | ||
16 | -#ifdef ENABLE_NLS | ||
17 | +#if 1 | ||
18 | +#define SYSLOG(x) | ||
19 | +#elif ENABLE_NLS | ||
20 | /* Temporarily set LC_TIME to "C" to avoid strange dates in syslog. | ||
21 | This is a workaround for a more general syslog(d) design problem - | ||
22 | syslogd should log the current system time for each event, and not | ||