From 98ba0b3a0a5074cf2b7adba407c5fd46f63c3f27 Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Sat, 24 Oct 1998 02:49:09 +0000 Subject: Unlink zero length files that did NOT exist at the point of origin on a do_get() call. --- source/client/client.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source') 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; } -- cgit