1
0
Эх сурвалжийг харах

* Fix a case where the temporary file was not cleaned up when exiting config editor (-C) (fixes #428)

Bryan Drewery 17 жил өмнө
parent
commit
ba5aab3f9c
2 өөрчлөгдсөн 3 нэмэгдсэн , 0 устгасан
  1. 1 0
      doc/UPDATES
  2. 2 0
      src/conf.c

+ 1 - 0
doc/UPDATES

@@ -13,6 +13,7 @@
 * New userfile cmdpass algorithm (salted-sha1)
 * Cleanup +r implementation a bit to lookup users more often than only on join.
 * If a user does not have a console setting, they will be given default settings on login.
+* Fix a case where the temporary file was not cleaned up when exiting config editor (-C) (fixes #428)
 
 1.2.16 - http://wraith.botpack.net/milestone/1.2.16
 * Add 'set altchars' so that alternative characters used for nicks can be changed. (fixes #418)

+ 2 - 0
src/conf.c

@@ -322,6 +322,8 @@ confedit()
 #endif
     if (timespecisset(&ts2)) {
       printf(STR("* Config unchanged.\n"));
+      tmpconf.my_close();
+      unlink(tmpconf.file);
       exit(0);            
     }
   }