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
5ad0e46f
Commit
5ad0e46f
authored
Jan 24, 2002
by
Martin Pool
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show command used to start connection child.
parent
1b5814e3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
NEWS
NEWS
+3
-0
util.c
util.c
+24
-0
No files found.
NEWS
View file @
5ad0e46f
...
...
@@ -17,6 +17,9 @@ rsync 2.5.2 (???)
ENHANCEMENTS:
* With -v, rsync now shows the command used to initiate an ssh/rsh
connection.
* --statistics now shows memory heap usage on platforms that
support mallinfo().
...
...
util.c
View file @
5ad0e46f
...
...
@@ -84,6 +84,26 @@ int fd_pair(int fd[2])
}
void
print_child_argv
(
char
**
cmd
)
{
rprintf
(
FINFO
,
RSYNC_NAME
": open connection using "
);
for
(;
*
cmd
;
cmd
++
)
{
/* Look for characters that ought to be quoted. This
* is not a great quoting algorithm, but it's
* sufficient for a log message. */
if
(
strspn
(
*
cmd
,
"abcdefghijklmnopqrstuvwxyz"
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"0123456789"
",.-_=+@/"
)
!=
strlen
(
*
cmd
))
{
rprintf
(
FINFO
,
"
\"
%s
\"
"
,
*
cmd
);
}
else
{
rprintf
(
FINFO
,
"%s "
,
*
cmd
);
}
}
rprintf
(
FINFO
,
"
\n
"
);
}
/* this is derived from CVS code
note that in the child STDIN is set to blocking and STDOUT
...
...
@@ -100,6 +120,10 @@ pid_t piped_child(char **command, int *f_in, int *f_out)
int
to_child_pipe
[
2
];
int
from_child_pipe
[
2
];
extern
int
blocking_io
;
if
(
verbose
>
0
)
{
print_child_argv
(
command
);
}
if
(
fd_pair
(
to_child_pipe
)
<
0
||
fd_pair
(
from_child_pipe
)
<
0
)
{
rprintf
(
FERROR
,
"pipe: %s
\n
"
,
strerror
(
errno
));
...
...
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