of a socket (that is, a --daemon) server, but never looked at. The way to
test whether or not on a client is (!am_server).
char line[MAXPATHLEN];
char *p, *user=NULL;
extern int remote_version;
- extern int am_client;
extern int am_sender;
if (*path == '/') {
if (!user) user = getenv("USER");
if (!user) user = getenv("LOGNAME");
- am_client = 1;
-
fd = open_socket_out(host, rsync_port);
if (fd == -1) {
exit_cleanup(RERR_SOCKETIO);
int am_sender=0;
int recurse = 0;
int am_daemon=0;
-int am_client=0;
int do_stats=0;
int do_progress=0;
int keep_partial=0;