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
6ad7be95
Commit
6ad7be95
authored
Dec 28, 2008
by
Viliam Mateicka
Committed by
Max Kellermann
Dec 29, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: fixing empty filenames in archives
parent
c15ac572
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
zip_plugin.c
src/archive/zip_plugin.c
+3
-0
update.c
src/update.c
+4
-0
No files found.
src/archive/zip_plugin.c
View file @
6ad7be95
...
...
@@ -56,8 +56,11 @@ zip_open(char * pathname)
}
while
(
zzip_dir_read
(
context
->
dir
,
&
dirent
))
{
//add only files
if
(
dirent
.
st_size
>
0
)
{
context
->
list
=
g_slist_prepend
(
context
->
list
,
xstrdup
(
dirent
.
d_name
));
}
}
return
(
struct
archive_file
*
)
context
;
}
...
...
src/update.c
View file @
6ad7be95
...
...
@@ -296,6 +296,10 @@ update_archive_tree(struct directory *directory, char *name)
//create directories first
update_archive_tree
(
subdir
,
tmp
+
1
);
}
else
{
if
(
strlen
(
name
)
==
0
)
{
g_warning
(
"archive returned directory only
\n
"
);
return
;
}
//add file
song
=
songvec_find
(
&
directory
->
songs
,
name
);
if
(
song
==
NULL
)
{
...
...
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