Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-tus
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
libvmod-tus
Commits
1069eeb7
Unverified
Commit
1069eeb7
authored
Sep 04, 2020
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
polish load loop
parent
6513b72b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
tus_file.c
src/tus_file.c
+6
-6
No files found.
src/tus_file.c
View file @
1069eeb7
...
...
@@ -639,12 +639,12 @@ tus_file_load(struct VPFX(tus_server) *srv)
dir
=
fdopendir
(
dup
(
basefd
));
AN
(
dir
);
ent
=
readdir
(
dir
);
while
(
ent
!=
NULL
)
{
if
(
strncmp
(
ent
->
d_name
,
TUS_FILE_PFX
,
strlen
(
TUS_FILE_PFX
))
==
0
&&
ent
->
d_type
=
=
DT_REG
)
tus_file_add
(
srv
,
basefd
,
ent
->
d_name
)
;
ent
=
readdir
(
dir
);
while
((
ent
=
readdir
(
dir
))
!=
NULL
)
{
if
(
strncmp
(
ent
->
d_name
,
TUS_FILE_PFX
,
strlen
(
TUS_FILE_PFX
)))
continue
;
if
(
ent
->
d_type
!
=
DT_REG
)
continue
;
tus_file_add
(
srv
,
basefd
,
ent
->
d_name
);
}
AZ
(
closedir
(
dir
));
}
...
...
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