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
b2175629
Commit
b2175629
authored
Jul 20, 2011
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update_walk: apply follow_inside_symlinks to absolute symlinks
parent
2e28ed8f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
NEWS
NEWS
+1
-0
update_walk.c
src/update_walk.c
+8
-2
No files found.
NEWS
View file @
b2175629
ver 0.16.4 (2011/??/??)
ver 0.16.4 (2011/??/??)
* fix memory leaks
* fix memory leaks
* don't resume playback when seeking to another song while paused
* don't resume playback when seeking to another song while paused
* apply follow_inside_symlinks to absolute symlinks
* decoder:
* decoder:
- ffmpeg: workaround for semantic API change in recent ffmpeg versions
- ffmpeg: workaround for semantic API change in recent ffmpeg versions
- flac: validate the sample rate when scanning the tag
- flac: validate the sample rate when scanning the tag
...
...
src/update_walk.c
View file @
b2175629
...
@@ -714,8 +714,14 @@ skip_symlink(const struct directory *directory, const char *utf8_name)
...
@@ -714,8 +714,14 @@ skip_symlink(const struct directory *directory, const char *utf8_name)
return
false
;
return
false
;
}
}
if
(
buffer
[
0
]
==
'/'
)
if
(
g_path_is_absolute
(
buffer
))
{
return
!
follow_outside_symlinks
;
/* if the symlink points to an absolute path, see if
that path is inside the music directory */
const
char
*
relative
=
map_to_relative_path
(
buffer
);
return
relative
>
buffer
?
!
follow_inside_symlinks
:
!
follow_outside_symlinks
;
}
p
=
buffer
;
p
=
buffer
;
while
(
*
p
==
'.'
)
{
while
(
*
p
==
'.'
)
{
...
...
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