diff options
-rw-r--r-- | source3/client/client.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/client/client.c b/source3/client/client.c index 5c668b84b3..8915d197ab 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -1013,7 +1013,10 @@ static void do_put(char *rname,char *lname) int ret; if ((n = readfile(buf,1,n,f)) < 1) { - DEBUG(0,("Error reading local file\n")); + if((n == 0) && feof(f)) + break; /* Empty local file. */ + + DEBUG(0,("Error reading local file: %s\n", strerror(errno) )); break; } |