From dc85a189a490d3fdd779da3aae1178aafde37cfc Mon Sep 17 00:00:00 2001 From: Peter Foley Date: Sat, 19 Mar 2016 13:45:49 -0400 Subject: 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 --- winsup/cygwin/fhandler_disk_file.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'winsup/cygwin/fhandler_disk_file.cc') 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); -- cgit v1.2.3