#! /bin/sh /usr/share/dpatch/dpatch-run ## fix_gksu.dpatch by Justin Dugger ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Echo Password: to programs -- gksudo expects this exact prompt, it seems @DPATCH@ diff -urNad thinkfinger-0.3~ppa1~/pam/pam_thinkfinger.c thinkfinger-0.3~ppa1/pam/pam_thinkfinger.c --- thinkfinger-0.3~ppa1~/pam/pam_thinkfinger.c 2007-09-07 19:51:18.000000000 -0500 +++ thinkfinger-0.3~ppa1/pam/pam_thinkfinger.c 2007-09-10 02:45:39.000000000 -0500 @@ -178,7 +178,12 @@ char *resp; /* always returning from pam_prompt due to the CR sent by the keyboard or by uinput */ - pam_prompt (pam_thinkfinger->pamh, PAM_PROMPT_ECHO_OFF, &resp, "Password or swipe finger: "); + if (pam_thinkfinger->isatty) { + pam_prompt (pam_thinkfinger->pamh, PAM_PROMPT_ECHO_OFF, &resp, "Password or swipe finger: "); + } + else { + pam_prompt (pam_thinkfinger->pamh, PAM_PROMPT_ECHO_OFF, &resp, "Password: "); + } pam_set_item (pam_thinkfinger->pamh, PAM_AUTHTOK, resp); /* ThinkFinger thread will return once we call libthinkfinger_free */