#include "defines.h"
#include "faillog.h"
#include "failure.h"
+#include "io/syslog.h"
#include "prototypes.h"
#include "string/memset/memzero.h"
#include "string/strftime.h"
fd = open (FAILLOG_FILE, O_RDWR);
if (fd < 0) {
- SYSLOG(LOG_WARN,
- "Can't write faillog entry for UID %lu in %s: %m",
- (unsigned long) uid, FAILLOG_FILE);
+ SYSLOGE(LOG_WARN,
+ "Can't write faillog entry for UID %lu in %s",
+ (unsigned long) uid, FAILLOG_FILE);
return;
}
errno = saved_errno;
}
err_close:
- SYSLOG(LOG_WARN,
- "Can't write faillog entry for UID %lu to %s: %m",
- (unsigned long) uid, FAILLOG_FILE);
+ SYSLOGE(LOG_WARN,
+ "Can't write faillog entry for UID %lu to %s",
+ (unsigned long) uid, FAILLOG_FILE);
}
static bool too_many_failures (const struct faillog *fl)
fd = open (FAILLOG_FILE, failed?O_RDONLY:O_RDWR);
if (fd < 0) {
- SYSLOG(LOG_WARN,
- "Can't open the faillog file (%s) to check UID %lu: %m; "
- "User access authorized.",
- FAILLOG_FILE, (unsigned long) uid);
+ SYSLOGE(LOG_WARN,
+ "User access authorized; "
+ "can't open the faillog file (%s) to check UID %lu",
+ FAILLOG_FILE, (unsigned long) uid);
return 1;
}
errno = saved_errno;
}
err_close:
- SYSLOG(LOG_WARN,
- "Can't reset faillog entry for UID %lu in %s: %m",
- (unsigned long) uid, FAILLOG_FILE);
+ SYSLOGE(LOG_WARN,
+ "Can't reset faillog entry for UID %lu in %s",
+ (unsigned long) uid, FAILLOG_FILE);
return 1;
}
#include "attr.h"
#include "defines.h"
+#include "io/syslog.h"
#include "prototypes.h"
#include "string/memset/memzero.h"
#include "string/strcpy/strncpy.h"
errno = saved_errno;
}
err_close:
- SYSLOG(LOG_WARN,
- "Can't write lastlog entry for UID %lu in %s: %m",
- (unsigned long) pw->pw_uid, _PATH_LASTLOG);
+ SYSLOGE(LOG_WARN,
+ "Can't write lastlog entry for UID %lu in %s",
+ (unsigned long) pw->pw_uid, _PATH_LASTLOG);
}
#include "alloc/calloc.h"
#include "alloc/malloc.h"
#include "attr.h"
+#include "io/syslog.h"
#include "sizeof.h"
#include "string/strchr/strnul.h"
#include "string/strcmp/streq.h"
fd = open (ftmp, O_WRONLY | O_APPEND);
if (-1 == fd) {
if (errno != ENOENT) {
- SYSLOG(LOG_WARN,
- "Can't append failure of user %s to %s: %m",
- username, ftmp);
+ SYSLOGE(LOG_WARN,
+ "Can't append failure of user %s to %s",
+ username, ftmp);
}
return;
}
errno = saved_errno;
}
err_close:
- SYSLOG(LOG_WARN, "Can't append failure of user %s to %s: %m", username, ftmp);
+ SYSLOGE(LOG_WARN, "Can't append failure of user %s to %s", username, ftmp);
}