diff options
author | Amadeusz Sławiński <amade@asmblr.net> | 2016-04-26 15:27:21 +0200 |
---|---|---|
committer | Amadeusz Sławiński <amade@asmblr.net> | 2016-06-18 15:08:28 +0200 |
commit | 94103f1c9ab7b5e7ce43a92cc2a630f470096472 (patch) | |
tree | ced8089875781bfe01485d732de7427bb45793ab /src/acls.c | |
parent | ffb1ca288477f9a76b1e831c6c4a990120e844db (diff) | |
download | screen-94103f1c9ab7b5e7ce43a92cc2a630f470096472.tar.gz |
just enable syslog use
Diffstat (limited to 'src/acls.c')
-rw-r--r-- | src/acls.c | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -40,9 +40,7 @@ #include <pwd.h> #endif /* CHECKLOGIN */ -#ifndef NOSYSLOG #include <syslog.h> -#endif #include "screen.h" /* includes acls.h */ @@ -476,16 +474,9 @@ char *DoSu(struct acluser **up, char *name, char *pw1, char *pw2) sorry++; } -#ifndef NOSYSLOG -#ifdef BSD_42 - openlog("screen", LOG_PID); -#else - openlog("screen", LOG_PID, LOG_AUTH); -#endif /* BSD_42 */ + openlog("screen", LOG_PID, LOG_AUTHPRIV); syslog(LOG_NOTICE, "%s: \"su %s\" %s for \"%s\"", SocketPath, name, sorry ? "failed" : "succeded", (*up)->u_name); closelog(); -#else -#endif /* NOSYSLOG */ if (sorry) return "Sorry."; |