summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2000-11-02 11:37:34 +0000
committerMartin Pool <mbp@samba.org>2000-11-02 11:37:34 +0000
commit0ba481368c2a44d6d6a2f361fa12df432d9d304b (patch)
treef4d79ac1b7377c7dcec3b38fad000e6cf38014e9 /main.c
parent38bf526fc5c78f780422c2f343ae6bf7f1bb4149 (diff)
downloadrsync-0ba481368c2a44d6d6a2f361fa12df432d9d304b.tar.gz
Add some comments.
Diffstat (limited to 'main.c')
-rw-r--r--main.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/main.c b/main.c
index 57992482..ca2b456f 100644
--- a/main.c
+++ b/main.c
@@ -1,5 +1,6 @@
-/*
- 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;