summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/chown-core.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/chown-core.c b/src/chown-core.c
index 55f8a2d36..26a272eed 100644
--- a/src/chown-core.c
+++ b/src/chown-core.c
@@ -256,12 +256,10 @@ restricted_chown (int cwd_fd, char const *file,
}
}
- { /* FIXME: remove these curly braces when we assume C99. */
- int saved_errno = errno;
- close (fd);
- errno = saved_errno;
- return status;
- }
+ int saved_errno = errno;
+ close (fd);
+ errno = saved_errno;
+ return status;
}
/* Change the owner and/or group of the file specified by FTS and ENT