Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Ondřej Kuzník
OpenLDAP
Commits
64fc67f4
Commit
64fc67f4
authored
Nov 02, 2020
by
Kris Zyp
Committed by
Howard Chu
May 13, 2022
Browse files
ITS
#9385
fix using MDB_NOSUBDIR with nonexistent file
parent
e2b82098
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/liblmdb/mdb.c
View file @
64fc67f4
...
...
@@ -5995,11 +5995,8 @@ mdb_env_open(MDB_env *env, const char *path, unsigned int flags, mdb_mode_t mode
#ifndef _WIN32
{
struct stat st;
rc
=
stat
(
path
,
&
st
);
if
(
rc
)
return
ErrCode
();
flags &= ~MDB_RAWPART;
if
(
S_ISBLK
(
st
.
st_mode
)
||
S_ISCHR
(
st
.
st_mode
))
if
(!stat(path, &st) &&
(S_ISBLK(st.st_mode) || S_ISCHR(st.st_mode))
)
flags |= MDB_RAWPART | MDB_NOSUBDIR;
}
#endif
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment