localedef(1): Fix mismatch in previous commit.

delete_category is meant to replace fclose() and unlink().
This broke world.

Found by:	kib
Pointedhat:	pfg
This commit is contained in:
Pedro F. Giffuni 2017-03-09 18:06:48 +00:00
parent 471f963d40
commit 5f6fcdca5b

View File

@ -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);
}