(main): don't print any error if reading the password was interrupted
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6968 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -114,8 +114,10 @@ main (int argc, char **argv)
|
||||
switch (ret) {
|
||||
case 0:
|
||||
break;
|
||||
case KRB5KRB_AP_ERR_BAD_INTEGRITY:
|
||||
case KRB5KRB_AP_ERR_MODIFIED:
|
||||
case KRB5_LIBOS_PWDINTR :
|
||||
return 1;
|
||||
case KRB5KRB_AP_ERR_BAD_INTEGRITY :
|
||||
case KRB5KRB_AP_ERR_MODIFIED :
|
||||
krb5_errx(context, 1, "Password incorrect");
|
||||
break;
|
||||
default:
|
||||
|
@@ -357,7 +357,7 @@ main (int argc, char **argv)
|
||||
switch(ret){
|
||||
case 0:
|
||||
break;
|
||||
case KRB5KDC_ERR_NONE: /* XXX hack in krb5_get_init_creds_password */
|
||||
case KRB5_LIBOS_PWDINTR: /* don't print anything if it was just C-c:ed */
|
||||
exit(1);
|
||||
case KRB5KRB_AP_ERR_BAD_INTEGRITY:
|
||||
case KRB5KRB_AP_ERR_MODIFIED:
|
||||
|
Reference in New Issue
Block a user