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:
parent
471f963d40
commit
5f6fcdca5b
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user