mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-04-25 00:29:04 -04:00
Removed am_client variable. It was being set in one place, when a client
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).
This commit is contained in:
@@ -34,7 +34,6 @@ int start_socket_client(char *host, char *path, int argc, char *argv[])
|
||||
char line[MAXPATHLEN];
|
||||
char *p, *user=NULL;
|
||||
extern int remote_version;
|
||||
extern int am_client;
|
||||
extern int am_sender;
|
||||
|
||||
if (*path == '/') {
|
||||
@@ -52,8 +51,6 @@ int start_socket_client(char *host, char *path, int argc, char *argv[])
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user