summaryrefslogtreecommitdiff
path: root/pam.c
diff options
context:
space:
mode:
authorConnor E <38229097+c-edw@users.noreply.github.com>2019-01-18 13:52:17 +0000
committerConnor E <38229097+c-edw@users.noreply.github.com>2019-01-18 13:52:17 +0000
commit648b0ccd64c45f6a37c8b6c49a39416a78230a2f (patch)
treedb73cef3b6fcf820a17b5eaa9129b29e2e80526e /pam.c
parentccefa54bb7d00f1ea923f283434b6af86e27708d (diff)
Make setuid error clearer.
Diffstat (limited to 'pam.c')
-rw-r--r--pam.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/pam.c b/pam.c
index a192f84..a603bd8 100644
--- a/pam.c
+++ b/pam.c
@@ -11,10 +11,11 @@
static char *pw_buf = NULL;
-void initialize_pw_backend(void) {
+void initialize_pw_backend(int argc, char **argv) {
if (getuid() != geteuid() || getgid() != getegid()) {
swaylock_log(LOG_ERROR,
- "swaylock has suid but doesn't require it with PAM backend");
+ "swaylock is setuid, but was compiled with the PAM"
+ " backend. Run 'chmod a-s %s' to fix. Aborting.", argv[0]);
exit(EXIT_FAILURE);
}
if (!spawn_comm_child()) {