Commit f76933b1 authored by Andrew Tridgell's avatar Andrew Tridgell

fixed the error code problem with test.sh

(was a minor bug in send_file_list)
parent 378a074c
...@@ -436,7 +436,7 @@ struct file_struct *make_file(int f, char *fname) ...@@ -436,7 +436,7 @@ struct file_struct *make_file(int f, char *fname)
if (readlink_stat(fname,&st,linkbuf) != 0) { if (readlink_stat(fname,&st,linkbuf) != 0) {
io_error = 1; io_error = 1;
rprintf(FERROR,"%s: %s\n", rprintf(FERROR,"readlink %s: %s\n",
fname,strerror(errno)); fname,strerror(errno));
return NULL; return NULL;
} }
...@@ -673,8 +673,10 @@ struct file_list *send_file_list(int f,int argc,char *argv[]) ...@@ -673,8 +673,10 @@ struct file_list *send_file_list(int f,int argc,char *argv[])
} }
if (link_stat(fname,&st) != 0) { if (link_stat(fname,&st) != 0) {
io_error=1; if (f != -1) {
rprintf(FERROR,"%s : %s\n",fname,strerror(errno)); io_error=1;
rprintf(FERROR,"link_stat %s : %s\n",fname,strerror(errno));
}
continue; continue;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment