summaryrefslogtreecommitdiff
path: root/src/acls.c
diff options
context:
space:
mode:
authorAmadeusz Sławiński <amade@asmblr.net>2016-04-26 15:27:21 +0200
committerAmadeusz Sławiński <amade@asmblr.net>2016-06-18 15:08:28 +0200
commit94103f1c9ab7b5e7ce43a92cc2a630f470096472 (patch)
treeced8089875781bfe01485d732de7427bb45793ab /src/acls.c
parentffb1ca288477f9a76b1e831c6c4a990120e844db (diff)
downloadscreen-94103f1c9ab7b5e7ce43a92cc2a630f470096472.tar.gz
just enable syslog use
Diffstat (limited to 'src/acls.c')
-rw-r--r--src/acls.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/acls.c b/src/acls.c
index b9c219e..a9ff18b 100644
--- a/src/acls.c
+++ b/src/acls.c
@@ -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.";