You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
633 B

  1. From a2b163a65a2d4fbca57c3aa82b526cf8fbc8e449 Mon Sep 17 00:00:00 2001
  2. From: Yousong Zhou <yszhou4tech@gmail.com>
  3. Date: Fri, 15 May 2015 10:56:23 +0800
  4. Subject: [PATCH 208/210] xl2tpd: unlink result file to prevent leftover a
  5. regular file.
  6. ---
  7. xl2tpd.c | 2 ++
  8. 1 file changed, 2 insertions(+)
  9. diff --git a/xl2tpd.c b/xl2tpd.c
  10. index 1937690..c11fe66 100644
  11. --- a/xl2tpd.c
  12. +++ b/xl2tpd.c
  13. @@ -1582,6 +1582,8 @@ void do_control ()
  14. if (resf)
  15. {
  16. fclose (resf);
  17. + /* unlink it anyway to prevent leftover a regular file. */
  18. + unlink(res_filename);
  19. }
  20. }
  21. --
  22. 1.7.10.4