From 8fed71c6ac8801145d1d5cdc857a30286af3d5e1 Mon Sep 17 00:00:00 2001 From: Nathan Neulinger Date: Fri, 5 Oct 2001 22:13:33 +0000 Subject: [PATCH] make-upclient-clean-up-after-itself-20011005 to preclude lots of turds being left in /tmp from failures --- src/update/client.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/update/client.c b/src/update/client.c index abd021583..9ec65f340 100644 --- a/src/update/client.c +++ b/src/update/client.c @@ -314,8 +314,11 @@ again: mode, atime, time); if (errcode == 1) /* this file failed, but keep trying */ goto fail_dirbuf; - if (errcode == -1) /* time to quit */ + if (errcode == -1) /* time to quit */ { + fclose(stream); + unlink(dirbuf); return -1; + } } } -- 2.39.5