From f76933b149e06e801448b1ae16f54efe72d32da3 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 27 Jan 2000 04:53:39 +0000 Subject: [PATCH] fixed the error code problem with test.sh (was a minor bug in send_file_list) --- flist.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/flist.c b/flist.c index 2dcbe756..17402099 100644 --- a/flist.c +++ b/flist.c @@ -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; } -- 2.34.1