mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Added strerror in more places
SVN revision: 1037
This commit is contained in:
parent
f63f3ae88a
commit
576d6e0cda
@ -6,6 +6,9 @@
|
|||||||
Contents: Web server program for Electronic Logbook ELOG
|
Contents: Web server program for Electronic Logbook ELOG
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.443 2004/08/06 06:45:01 midas
|
||||||
|
Added strerror in more places
|
||||||
|
|
||||||
Revision 1.442 2004/08/05 09:13:18 midas
|
Revision 1.442 2004/08/05 09:13:18 midas
|
||||||
Added check for 'Full name'
|
Added check for 'Full name'
|
||||||
|
|
||||||
@ -9274,6 +9277,8 @@ int save_user_config(LOGBOOK * lbs, char *user, BOOL new_user, BOOL activate)
|
|||||||
fh = open(file_name, O_RDWR | O_BINARY | O_CREAT, 0644);
|
fh = open(file_name, O_RDWR | O_BINARY | O_CREAT, 0644);
|
||||||
if (fh < 0) {
|
if (fh < 0) {
|
||||||
sprintf(str, loc("Cannot open file <b>%s</b>"), file_name);
|
sprintf(str, loc("Cannot open file <b>%s</b>"), file_name);
|
||||||
|
strcat(str, ": ");
|
||||||
|
strlcat(str, strerror(errno), sizeof(str));
|
||||||
show_error(str);
|
show_error(str);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -17752,7 +17757,8 @@ BOOL check_user_password(LOGBOOK * lbs, char *user, char *password, char *redir)
|
|||||||
} else {
|
} else {
|
||||||
getcfg(lbs->name, "Password file", full_name, sizeof(full_name));
|
getcfg(lbs->name, "Password file", full_name, sizeof(full_name));
|
||||||
sprintf(str, loc("Cannot open file <b>%s</b>"), full_name);
|
sprintf(str, loc("Cannot open file <b>%s</b>"), full_name);
|
||||||
|
strcat(str, ": ");
|
||||||
|
strlcat(str, strerror(errno), sizeof(str));
|
||||||
show_error(str);
|
show_error(str);
|
||||||
}
|
}
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user