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
718e1804
Commit
718e1804
authored
Nov 28, 2011
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mapper: check "x" permission on music directory
This is a common support case, and hopefully, the new error message will allow the user to understand the error without requiring support.
parent
cead5e5b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
NEWS
NEWS
+1
-0
mapper.c
src/mapper.c
+8
-0
No files found.
NEWS
View file @
718e1804
...
@@ -5,6 +5,7 @@ ver 0.16.6 (2010/??/??)
...
@@ -5,6 +5,7 @@ ver 0.16.6 (2010/??/??)
- flac, null, wave: fix buffer corruption bug
- flac, null, wave: fix buffer corruption bug
- wave: support packed 24 bit samples
- wave: support packed 24 bit samples
* mapper: fix the bogus "not a directory" error message
* mapper: fix the bogus "not a directory" error message
* mapper: check "x" permission on music directory
* log: print reason for failure
* log: print reason for failure
* event_pipe: fix WIN32 regression
* event_pipe: fix WIN32 regression
* define WINVER in ./configure
* define WINVER in ./configure
...
...
src/mapper.c
View file @
718e1804
...
@@ -68,6 +68,14 @@ check_directory(const char *path)
...
@@ -68,6 +68,14 @@ check_directory(const char *path)
g_warning
(
"Not a directory: %s"
,
path
);
g_warning
(
"Not a directory: %s"
,
path
);
return
;
return
;
}
}
#ifndef WIN32
char
*
x
=
g_build_filename
(
path
,
"."
,
NULL
);
if
(
stat
(
x
,
&
st
)
<
0
&&
errno
==
EACCES
)
g_warning
(
"No permission to traverse (
\"
execute
\"
) directory: %s"
,
path
);
g_free
(
x
);
#endif
}
}
static
void
static
void
...
...
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