Fix password handling.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3456 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1997-09-09 16:24:07 +00:00
parent 64625b5fcc
commit 1c6b2da7c9

View File

@@ -115,8 +115,8 @@ int main(int argc, char **argv)
cell = strdup(buf);
}
#endif
if(argv[optind])
password = argv[optind];
if(argv[0])
password = argv[0];
if(password == NULL){
des_read_pw_string(buf, sizeof(buf), "Password: ", 0);
password = buf;