From 5f6fcdca5b2df55e094af7706c1e8928d191c0b7 Mon Sep 17 00:00:00 2001 From: "Pedro F. Giffuni" Date: Thu, 9 Mar 2017 18:06:48 +0000 Subject: [PATCH] localedef(1): Fix mismatch in previous commit. delete_category is meant to replace fclose() and unlink(). This broke world. Found by: kib Pointedhat: pfg --- usr.bin/localedef/localedef.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/usr.bin/localedef/localedef.c b/usr.bin/localedef/localedef.c index e2457f296e9..bd8312365ae 100644 --- a/usr.bin/localedef/localedef.c +++ b/usr.bin/localedef/localedef.c @@ -137,8 +137,6 @@ close_category(FILE *f) { if (fchmod(fileno(f), 0644) < 0 || fclose(f) != 0) { - (void) fclose(f); - (void) unlink(category_file()); errf(strerror(errno)); delete_category(f); }