mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-10-01 05:05:19 +00:00
Fixed S_IWUSR problem under Windows
SVN revision: 2451
This commit is contained in:
parent
d3a6c3b9b1
commit
4360922e24
@ -24817,7 +24817,11 @@ PMXML_NODE load_password_file(LOGBOOK * lbs, char *error, int error_size)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((st.st_mode & S_IWUSR) == 0) {
|
#ifdef OS_WINNT
|
||||||
|
if ((st.st_mode & _S_IWRITE) == 0) {
|
||||||
|
#else
|
||||||
|
if ((st.st_mode & S_IWUSR) == 0) {
|
||||||
|
#endif
|
||||||
sprintf(str, "Cannot access write protected password file \"%s\"", file_name);
|
sprintf(str, "Cannot access write protected password file \"%s\"", file_name);
|
||||||
strlcpy(error, str, error_size);
|
strlcpy(error, str, error_size);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user