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
6f365c30
Commit
6f365c30
authored
Nov 28, 2011
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mapper: check "r" permission on music directory
Yet another common support case.
parent
718e1804
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
NEWS
NEWS
+1
-1
mapper.c
src/mapper.c
+7
-0
No files found.
NEWS
View file @
6f365c30
...
...
@@ -5,7 +5,7 @@ ver 0.16.6 (2010/??/??)
- flac, null, wave: fix buffer corruption bug
- wave: support packed 24 bit samples
* mapper: fix the bogus "not a directory" error message
* mapper: check "x"
permission
on music directory
* mapper: check "x"
and "r" permissions
on music directory
* log: print reason for failure
* event_pipe: fix WIN32 regression
* define WINVER in ./configure
...
...
src/mapper.c
View file @
6f365c30
...
...
@@ -34,6 +34,7 @@
#include <sys/stat.h>
#include <unistd.h>
#include <errno.h>
#include <dirent.h>
static
char
*
music_dir
;
static
size_t
music_dir_length
;
...
...
@@ -76,6 +77,12 @@ check_directory(const char *path)
path
);
g_free
(
x
);
#endif
DIR
*
dir
=
opendir
(
path
);
if
(
dir
==
NULL
&&
errno
==
EACCES
)
g_warning
(
"No permission to read directory: %s"
,
path
);
else
closedir
(
dir
);
}
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