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 | b0c360c25a4fb68efc03768642dea0d6f8a620c7 (patch) | |
tree | 67b7788dfac62d8a9c42a9318d0e67de18edb441 /source3 | |
parent | 3acae62a876beab12390d24212be386876e73831 (diff) | |
download | samba-b0c360c25a4fb68efc03768642dea0d6f8a620c7.tar.gz samba-b0c360c25a4fb68efc03768642dea0d6f8a620c7.tar.bz2 samba-b0c360c25a4fb68efc03768642dea0d6f8a620c7.zip |
Unlink zero length files that did NOT exist at the point of origin on a do_get() call.
(This used to be commit 98ba0b3a0a5074cf2b7adba407c5fd46f63c3f27)
Diffstat (limited to 'source3')
-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 1c0286fc51..bf38684d3e 100644 --- a/source3/client/client.c +++ b/source3/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; } |