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
0b515981
Commit
0b515981
authored
Sep 16, 2007
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed print_child_argv() to take its prefix message as an arg.
parent
2e8259bb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
clientserver.c
clientserver.c
+1
-1
pipe.c
pipe.c
+1
-1
util.c
util.c
+3
-3
No files found.
clientserver.c
View file @
0b515981
...
...
@@ -242,7 +242,7 @@ int start_inband_exchange(int f_in, int f_out, const char *user, int argc, char
sargs
[
sargc
]
=
NULL
;
if
(
verbose
>
1
)
print_child_argv
(
sargs
);
print_child_argv
(
"sending daemon args:"
,
sargs
);
p
=
strchr
(
path
,
'/'
);
if
(
p
)
*
p
=
'\0'
;
...
...
pipe.c
View file @
0b515981
...
...
@@ -50,7 +50,7 @@ pid_t piped_child(char **command, int *f_in, int *f_out)
int
from_child_pipe
[
2
];
if
(
verbose
>=
2
)
print_child_argv
(
command
);
print_child_argv
(
"opening connection using:"
,
command
);
if
(
fd_pair
(
to_child_pipe
)
<
0
||
fd_pair
(
from_child_pipe
)
<
0
)
{
rsyserr
(
FERROR
,
errno
,
"pipe"
);
...
...
util.c
View file @
0b515981
...
...
@@ -90,9 +90,9 @@ int fd_pair(int fd[2])
return
ret
;
}
void
print_child_argv
(
char
**
cmd
)
void
print_child_argv
(
c
onst
char
*
prefix
,
c
har
**
cmd
)
{
rprintf
(
FCLIENT
,
"
opening connection using "
);
rprintf
(
FCLIENT
,
"
%s "
,
prefix
);
for
(;
*
cmd
;
cmd
++
)
{
/* Look for characters that ought to be quoted. This
* is not a great quoting algorithm, but it's
...
...
@@ -1478,7 +1478,7 @@ void *expand_item_list(item_list *lp, size_t item_size,
void
*
new_ptr
;
size_t
new_size
=
lp
->
malloced
;
if
(
incr
<
0
)
new_size
-=
incr
;
/* increase slowly */
new_size
+=
-
incr
;
/* increase slowly */
else
if
(
new_size
<
(
size_t
)
incr
)
new_size
+=
incr
;
else
...
...
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