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>
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);
HANDLE sh = FindFirstVolumeW (vol, 64);
if (sh == INVALID_HANDLE_VALUE)
debug_printf ("FindFirstVolumeW, %E");
- else
+ else {
do
{
/* Skip drives which are not mounted. */
}
while (FindNextVolumeW (sh, vol, 64));
FindVolumeClose (sh);
+ }
}
wchar_t *