fix if (ENABLE_FEATURE_SYSLOG & (...)) - should be &&
diff --git a/libbb/verror_msg.c b/libbb/verror_msg.c
index be206e4..d55da73 100644
--- a/libbb/verror_msg.c
+++ b/libbb/verror_msg.c
@@ -32,7 +32,7 @@
else
fprintf(stderr, ": %s\n", strerr);
}
- if (ENABLE_FEATURE_SYSLOG & (logmode & LOGMODE_SYSLOG)) {
+ if (ENABLE_FEATURE_SYSLOG && (logmode & LOGMODE_SYSLOG)) {
if (!strerr)
vsyslog(LOG_ERR, s, p2);
else {
diff --git a/libbb/vinfo_msg.c b/libbb/vinfo_msg.c
index 84825bc..82fbda2 100644
--- a/libbb/vinfo_msg.c
+++ b/libbb/vinfo_msg.c
@@ -24,7 +24,7 @@
vprintf(s, p);
putchar('\n');
}
- if (ENABLE_FEATURE_SYSLOG & (logmode & LOGMODE_SYSLOG))
+ if (ENABLE_FEATURE_SYSLOG && (logmode & LOGMODE_SYSLOG))
vsyslog(LOG_INFO, s, p2);
va_end(p2);
}