1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

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

Jeremy
This commit is contained in:
Jeremy Allison 0001-01-01 00:00:00 +00:00
parent 8b790cf3e2
commit 9ba8ad1d3d

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