Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblongpath-rsync
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
liblongpath
liblongpath-rsync
Commits
d6df0739
Commit
d6df0739
authored
Jun 02, 2013
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix module-name splitting with --protect-args.
Fixes bug 8838.
parent
d9ca1e49
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
t_stub.c
t_stub.c
+1
-0
util.c
util.c
+6
-0
No files found.
t_stub.c
View file @
d6df0739
...
...
@@ -23,6 +23,7 @@
int
modify_window
=
0
;
int
preallocate_files
=
0
;
int
protect_args
=
0
;
int
module_id
=
-
1
;
int
relative_paths
=
0
;
int
module_dirlen
=
0
;
...
...
util.c
View file @
d6df0739
...
...
@@ -26,6 +26,7 @@
#include "inums.h"
extern
int
module_id
;
extern
int
protect_args
;
extern
int
modify_window
;
extern
int
relative_paths
;
extern
int
preserve_times
;
...
...
@@ -759,6 +760,11 @@ void glob_expand_module(char *base1, char *arg, char ***argv_p, int *argc_p, int
if
(
strncmp
(
arg
,
base
,
base_len
)
==
0
)
arg
+=
base_len
;
if
(
protect_args
)
{
glob_expand
(
arg
,
argv_p
,
argc_p
,
maxargs_p
);
return
;
}
if
(
!
(
arg
=
strdup
(
arg
)))
out_of_memory
(
"glob_expand_module"
);
...
...
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