summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_disk_file.cc
diff options
context:
space:
mode:
authorPeter Foley <pefoley2@pefoley.com>2016-03-19 13:45:49 -0400
committerCorinna Vinschen <corinna@vinschen.de>2016-03-20 11:55:08 +0100
commitdc85a189a490d3fdd779da3aae1178aafde37cfc (patch)
tree5ba8657494914e88b4c73a5c6e5f58e2b0ebed85 /winsup/cygwin/fhandler_disk_file.cc
parent922e21a3eae20cdf68aa8a2db6b03a52648c3d1e (diff)
downloadcygnal-dc85a189a490d3fdd779da3aae1178aafde37cfc.tar.gz
cygnal-dc85a189a490d3fdd779da3aae1178aafde37cfc.tar.bz2
cygnal-dc85a189a490d3fdd779da3aae1178aafde37cfc.zip
Add necessary braces to if statements
The missing braces cause only the first expression to be guarded by the else clause. winsup/cygwin/ChangeLog * fhandler_disk_file.cc (facl): Add missing braces to if statement. * mount.cc (dos_drive_mappings): Add missing braces to if statement. Signed-off-by: Peter Foley <pefoley2@pefoley.com>
Diffstat (limited to 'winsup/cygwin/fhandler_disk_file.cc')
-rw-r--r--winsup/cygwin/fhandler_disk_file.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc
index 470dae872..2cf738f6d 100644
--- a/winsup/cygwin/fhandler_disk_file.cc
+++ b/winsup/cygwin/fhandler_disk_file.cc
@@ -1055,11 +1055,12 @@ cant_access_acl:
case GETACL:
if (!aclbufp)
set_errno(EFAULT);
- else
+ else {
res = getacl (get_stat_handle (), pc, nentries, aclbufp);
/* For this ENOSYS case, see security.cc:get_file_attribute(). */
if (res == -1 && get_errno () == ENOSYS)
goto cant_access_acl;
+ }
break;
case GETACLCNT:
res = getacl (get_stat_handle (), pc, 0, NULL);