Don't print warning about bad passwords.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@540 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1996-05-18 23:55:31 +00:00
parent 1ed32ba8a6
commit 27ae0b4351

View File

@@ -574,8 +574,10 @@ verify(char *password)
return 0;
}
fprintf(stderr, "%s: Warning: %s\n", ProgName,
(ret < 0) ? strerror(ret) : krb_get_err_text(ret));
if(ret != INTK_BADPW){
fprintf(stderr, "%s: Warning: %s\n", ProgName,
(ret < 0) ? strerror(ret) : krb_get_err_text(ret));
}
/*
* Try to verify as user.
@@ -640,6 +642,8 @@ GetPasswd(Widget w, XEvent *_event, String *_s, Cardinal *_n)
if(verify(passwd) == 0)
leave();
cnt = 0;
XDrawImageString(dpy, XtWindow(widget), gc,
time_x, time_y, FAIL_MSG, strlen(FAIL_MSG));
time_left = 0;