Skip to content

Commit

Permalink
Fix detecting encryption
Browse files Browse the repository at this point in the history
  • Loading branch information
kainjow committed Feb 25, 2018
1 parent 309e177 commit b7443b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SLDiskManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ - (void)updateDisk:(SLDisk *)disk fromDescription:(NSDictionary *)description
}
disk.volumeKind = [description objectForKey:(NSString *)kDADiskDescriptionVolumeKindKey];
NSString* volumeType = [description objectForKey:(NSString *)kDADiskDescriptionVolumeTypeKey];
disk.encrypted = [volumeType rangeOfString:@"encrypt"].location == NSNotFound;
disk.encrypted = [volumeType rangeOfString:@"encrypt" options:NSCaseInsensitiveSearch].location != NSNotFound;
CFUUIDRef uuidRef = (__bridge CFUUIDRef)[description objectForKey:(NSString *)kDADiskDescriptionVolumeUUIDKey];
if (uuidRef) {
disk.volumeUUID = (__bridge_transfer NSString *)CFUUIDCreateString(NULL, uuidRef);
Expand Down

0 comments on commit b7443b4

Please sign in to comment.