Fix bug with --compare-dest option where missing parent directories in the
[rsync/rsync.git] / clientserver.c
index 7b0dd16..9e79538 100644 (file)
@@ -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);
@@ -292,7 +289,7 @@ static int rsync_module(int fd, int i)
                }
        }
 
-       ret = parse_arguments(argc, argv);
+       ret = parse_arguments(argc, argv, 0);
 
        if (request) {
                if (*auth_user) {