Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
762712c7
Commit
762712c7
authored
Jul 08, 2011
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
database: require X_OK on parent directory, not R_OK
For accessing the child of a directory, one needs X_OK on the directory.
parent
73f9e179
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
database.c
src/database.c
+1
-1
No files found.
src/database.c
View file @
762712c7
...
...
@@ -180,7 +180,7 @@ db_check(void)
}
/* Check if we can write to the directory */
if
(
access
(
dirPath
,
R
_OK
|
W_OK
))
{
if
(
access
(
dirPath
,
X
_OK
|
W_OK
))
{
g_warning
(
"Can't create db file in
\"
%s
\"
: %s"
,
dirPath
,
strerror
(
errno
));
g_free
(
dirPath
);
...
...
Write
Preview
Markdown
is supported
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