Improved error output if password file cannot be opened

SVN revision: 1730
This commit is contained in:
2006-10-13 19:25:46 +00:00
parent a4c991c16f
commit 6d6bb5ef72
+1
View File
@@ -21223,6 +21223,7 @@ PMXML_NODE load_password_file(LOGBOOK * lbs, char *error, int error_size)
strcat(str, ": ");
strlcat(str, strerror(errno), sizeof(str));
show_error(str);
eprintf(str);
strlcpy(error, str, error_size);
return NULL;
}