From: Wayne Davison Date: Mon, 15 Dec 2003 00:54:44 +0000 (+0000) Subject: Simplified the setting of the reading_remotely variable in function X-Git-Tag: v2.6.0pre1~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55d5937dd62be7224de88e40bdba8b91af4295cc;p=thirdparty%2Frsync.git Simplified the setting of the reading_remotely variable in function read_filesfrom_line() now that remote_filesfrom_file is set more often. --- diff --git a/io.c b/io.c index 9fc37152..3ca13df5 100644 --- a/io.c +++ b/io.c @@ -375,8 +375,7 @@ int read_filesfrom_line(int fd, char *fname) extern int io_timeout; extern int eol_nulls; extern char *remote_filesfrom_file; - extern int am_server; - int reading_remotely = remote_filesfrom_file || (am_server && fd == 0); + int reading_remotely = remote_filesfrom_file != NULL; int nulls = eol_nulls || reading_remotely; start: