From a2b163a65a2d4fbca57c3aa82b526cf8fbc8e449 Mon Sep 17 00:00:00 2001 From: Yousong Zhou Date: Fri, 15 May 2015 10:56:23 +0800 Subject: [PATCH 208/210] xl2tpd: unlink result file to prevent leftover a regular file. --- xl2tpd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xl2tpd.c b/xl2tpd.c index 1937690..c11fe66 100644 --- a/xl2tpd.c +++ b/xl2tpd.c @@ -1582,6 +1582,8 @@ void do_control () if (resf) { fclose (resf); + /* unlink it anyway to prevent leftover a regular file. */ + unlink(res_filename); } } -- 1.7.10.4