diff --git a/SUDiskImageUnarchiver.m b/SUDiskImageUnarchiver.m index 6dcf92bc..a905ee6b 100644 --- a/SUDiskImageUnarchiver.m +++ b/SUDiskImageUnarchiver.m @@ -83,6 +83,10 @@ NSString *fromPath = [mountPoint stringByAppendingPathComponent:item]; NSString *toPath = [[archivePath stringByDeletingLastPathComponent] stringByAppendingPathComponent:item]; + // We skip any files in the DMG which are not readable. + if (![manager isReadableFileAtPath:fromPath]) + continue; + SULog(@"copyItemAtPath:%@ toPath:%@", fromPath, toPath); if (![manager copyItemAtPath:fromPath toPath:toPath error:&error])