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
0ba48136
Commit
0ba48136
authored
Nov 02, 2000
by
Martin Pool
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some comments.
parent
38bf526f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
io.c
io.c
+2
-0
main.c
main.c
+14
-2
No files found.
io.c
View file @
0ba48136
...
...
@@ -455,6 +455,8 @@ void io_flush(void)
io_buffer_count
=
0
;
}
/* XXX: fd is ignored, which seems a little strange. */
void
io_end_buffering
(
int
fd
)
{
io_flush
();
...
...
main.c
View file @
0ba48136
/*
Copyright (C) Andrew Tridgell 1996
/* -*- c-file-style: "linux" -*-
Copyright (C) 1996-2000 by Andrew Tridgell
Copyright (C) Paul Mackerras 1996
This program is free software; you can redistribute it and/or modify
...
...
@@ -458,6 +459,11 @@ void start_server(int f_in, int f_out, int argc, char *argv[])
exit_cleanup
(
0
);
}
/*
* This is called once the connection has been negotiated. It is used
* for rsyncd, remote-shell, and local connections.
*/
int
client_run
(
int
f_in
,
int
f_out
,
int
pid
,
int
argc
,
char
*
argv
[])
{
struct
file_list
*
flist
;
...
...
@@ -545,6 +551,12 @@ static char *find_colon(char *s)
return
p
;
}
/*
* Start a client for either type of remote connection. Work out
* whether the arguments request a remote shell or rsyncd connection,
* and call the appropriate connection function, then run_client.
*/
static
int
start_client
(
int
argc
,
char
*
argv
[])
{
char
*
p
;
...
...
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