diff options
author | John Terpstra <jht@samba.org> | 1998-10-24 02:49:09 +0000 |
---|---|---|
committer | John Terpstra <jht@samba.org> | 1998-10-24 02:49:09 +0000 |
commit | 98ba0b3a0a5074cf2b7adba407c5fd46f63c3f27 (patch) | |
tree | 6e21a0def29fcc79628722d1a42f25271c5177d3 /source | |
parent | 1e96e14e790e733bbd182a828b0db8727fead2a2 (diff) | |
download | samba-98ba0b3a0a5074cf2b7adba407c5fd46f63c3f27.tar.gz samba-98ba0b3a0a5074cf2b7adba407c5fd46f63c3f27.tar.xz samba-98ba0b3a0a5074cf2b7adba407c5fd46f63c3f27.zip |
Unlink zero length files that did NOT exist at the point of origin on a do_get() call.
Diffstat (limited to 'source')
-rw-r--r-- | source/client/client.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/client/client.c b/source/client/client.c index 1c0286fc511..bf38684d3e8 100644 --- a/source/client/client.c +++ b/source/client/client.c @@ -1205,7 +1205,10 @@ static void do_get(char *rname,char *lname,file_info *finfo1) } DEBUG(0,("%s opening remote file %s\n",smb_errstr(inbuf),CNV_LANG(rname))); if(newhandle) - close(handle); + { + close(handle); + unlink(lname); + } free(inbuf);free(outbuf); return; } |