diff options
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) |
