summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-01-06 21:23:49 +0000
committerJeremy Allison <jra@samba.org>2000-01-06 21:23:49 +0000
commit20bd653b4803e4abb25813048c2685b1e2c9a3ad (patch)
tree0a59c749b7d5b8e7e51ba7f9be73e0adff8525da /source3
parentcebc23762d39cdd5373276f97cf68e2bc56d899a (diff)
downloadsamba-20bd653b4803e4abb25813048c2685b1e2c9a3ad.tar.gz
samba-20bd653b4803e4abb25813048c2685b1e2c9a3ad.tar.bz2
samba-20bd653b4803e4abb25813048c2685b1e2c9a3ad.zip
Fixed spurious error message when doing a 'put' of an empty file.
Jeremy (This used to be commit 9ba8ad1d3d4559fdf6695a18c99e83a1d37c9ac4)
Diffstat (limited to 'source3')
-rw-r--r--source3/client/client.c5
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;
}