diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-01-27 04:53:39 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-01-27 04:53:39 +0000 |
commit | f76933b149e06e801448b1ae16f54efe72d32da3 (patch) | |
tree | a70ed82baafebc4de47cc4f930a63b56454bc3f2 | |
parent | 378a074c82bdb393b5780832598aaa1c648926b8 (diff) | |
download | rsync-f76933b149e06e801448b1ae16f54efe72d32da3.tar.gz |
fixed the error code problem with test.sh
(was a minor bug in send_file_list)
-rw-r--r-- | flist.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -436,7 +436,7 @@ struct file_struct *make_file(int f, char *fname) if (readlink_stat(fname,&st,linkbuf) != 0) { io_error = 1; - rprintf(FERROR,"%s: %s\n", + rprintf(FERROR,"readlink %s: %s\n", fname,strerror(errno)); return NULL; } @@ -673,8 +673,10 @@ struct file_list *send_file_list(int f,int argc,char *argv[]) } if (link_stat(fname,&st) != 0) { - io_error=1; - rprintf(FERROR,"%s : %s\n",fname,strerror(errno)); + if (f != -1) { + io_error=1; + rprintf(FERROR,"link_stat %s : %s\n",fname,strerror(errno)); + } continue; } |