1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-24 21:49:29 +03:00

Fixed spurious error message when doing a 'put' of an empty file.

Jeremy
(This used to be commit 9ba8ad1d3d)
This commit is contained in:
Jeremy Allison
2000-01-06 21:23:49 +00:00
parent cebc23762d
commit 20bd653b48

View File

@ -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;
}