Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
b9baae25
Commit
b9baae25
authored
Aug 05, 2005
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/control/http.c: Support for ~ in foreach directory.
parent
4e69a722
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
modules/control/http.c
modules/control/http.c
+12
-3
No files found.
modules/control/http.c
View file @
b9baae25
...
...
@@ -1212,7 +1212,7 @@ static mvar_t *mvar_FileSetNew( intf_thread_t *p_intf, char *name,
char
*
psz_dir
)
{
mvar_t
*
s
=
mvar_New
(
name
,
"set"
);
char
tmp
[
MAX_DIR_SIZE
],
*
p
,
*
src
;
char
tmp
[
MAX_DIR_SIZE
],
dir
[
MAX_DIR_SIZE
],
*
p
,
*
src
;
#ifdef HAVE_SYS_STAT_H
struct
stat
stat_info
;
#endif
...
...
@@ -1255,6 +1255,15 @@ static mvar_t *mvar_FileSetNew( intf_thread_t *p_intf, char *name,
{
return
s
;
}
if
(
*
psz_dir
==
'~'
)
{
/* This is incomplete : we should also support the ~cmassiot/ syntax. */
snprintf
(
dir
,
sizeof
(
dir
),
"%s/%s"
,
p_intf
->
p_vlc
->
psz_homedir
,
psz_dir
+
1
);
psz_dir
=
dir
;
}
/* first fix all .. dir */
p
=
src
=
psz_dir
;
while
(
*
src
)
...
...
@@ -1332,7 +1341,7 @@ static mvar_t *mvar_FileSetNew( intf_thread_t *p_intf, char *name,
continue
;
}
s
printf
(
tmp
,
"%s/%s"
,
psz_dir
,
p_dir_content
->
d_name
);
s
nprintf
(
tmp
,
sizeof
(
tmp
)
,
"%s/%s"
,
psz_dir
,
p_dir_content
->
d_name
);
#ifdef HAVE_SYS_STAT_H
if
(
stat
(
tmp
,
&
stat_info
)
==
-
1
)
...
...
@@ -1346,7 +1355,7 @@ static mvar_t *mvar_FileSetNew( intf_thread_t *p_intf, char *name,
p_dir_content
->
d_name
);
psz_name
=
FromUTF8
(
p_intf
,
psz_tmp
);
free
(
psz_tmp
);
s
printf
(
tmp
,
"%s/%s"
,
psz_dir
,
psz_name
);
s
nprintf
(
tmp
,
sizeof
(
tmp
)
,
"%s/%s"
,
psz_dir
,
psz_name
);
mvar_AppendNewVar
(
f
,
"name"
,
tmp
);
mvar_AppendNewVar
(
f
,
"basename"
,
psz_name
);
...
...
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