diff options
| author | Simeon Simeonov | 2020-04-15 14:00:52 +0200 |
|---|---|---|
| committer | Simeon Simeonov | 2020-04-15 14:00:52 +0200 |
| commit | a3abcefc4aaae3fba272c4181826c951bf179353 (patch) | |
| tree | 901afed57481e26daef93562a6d27e68cb068081 /i3lock.c | |
| parent | f12c8e4e28951b88e788cd1f8b446886707d4d04 (diff) | |
Fix a PAM related bug and update README.md1.2.12a
Diffstat (limited to 'i3lock.c')
| -rw-r--r-- | i3lock.c | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -1384,7 +1384,11 @@ int main(int argc, char *argv[]) { | |||
| 1384 | 1384 | ||
| 1385 | #ifndef __OpenBSD__ | 1385 | #ifndef __OpenBSD__ |
| 1386 | /* Initialize PAM */ | 1386 | /* Initialize PAM */ |
| 1387 | #ifdef EXTRAS | ||
| 1388 | if ((ret = pam_start("i3lock-extended", username, &conv, &pam_handle)) != PAM_SUCCESS) | ||
| 1389 | #else | ||
| 1387 | if ((ret = pam_start("i3lock", username, &conv, &pam_handle)) != PAM_SUCCESS) | 1390 | if ((ret = pam_start("i3lock", username, &conv, &pam_handle)) != PAM_SUCCESS) |
| 1391 | #endif | ||
| 1388 | errx(EXIT_FAILURE, "PAM: %s", pam_strerror(pam_handle, ret)); | 1392 | errx(EXIT_FAILURE, "PAM: %s", pam_strerror(pam_handle, ret)); |
| 1389 | 1393 | ||
| 1390 | if ((ret = pam_set_item(pam_handle, PAM_TTY, getenv("DISPLAY"))) != PAM_SUCCESS) | 1394 | if ((ret = pam_set_item(pam_handle, PAM_TTY, getenv("DISPLAY"))) != PAM_SUCCESS) |
