aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2017-03-09 18:06:48 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2017-03-09 18:06:48 +0000
commit5f6fcdca5b2df55e094af7706c1e8928d191c0b7 (patch)
tree6e5b1377ebf7dc7b41f9330074424ece4dc06e0e /usr.bin
parent471f963d40a62aacb2d708bdd11e1f9e97b1b984 (diff)
downloadsrc-5f6fcdca5b2df55e094af7706c1e8928d191c0b7.tar.gz
src-5f6fcdca5b2df55e094af7706c1e8928d191c0b7.zip
localedef(1): Fix mismatch in previous commit.
delete_category is meant to replace fclose() and unlink(). This broke world. Found by: kib Pointedhat: pfg
Notes
Notes: svn path=/head/; revision=314969
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/localedef/localedef.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/usr.bin/localedef/localedef.c b/usr.bin/localedef/localedef.c
index e2457f296e94..bd8312365ae3 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);
}