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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=314969
@ -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