mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-07 09:58:54 +00:00
Remove OS X 10.9 code path since we no longer support it
This commit is contained in:
parent
040d9d5fd1
commit
05bbe2ce06
@ -167,28 +167,12 @@ void parseQuarantineFile(QueryData &results, const std::string &path) {
|
||||
}
|
||||
|
||||
CFTypeRef quarantine_properties;
|
||||
#if defined(DARWIN_10_9)
|
||||
FSRef fs_url;
|
||||
if (!CFURLGetFSRef(url, &fs_url)) {
|
||||
VLOG(1) << "Error obtaining FSRef for " << path;
|
||||
VLOG(1) << "Unable to fetch quarantine data";
|
||||
CFRelease(url);
|
||||
return;
|
||||
}
|
||||
if (LSCopyItemAttribute(&fs_url, kLSRolesAll, kLSItemQuarantineProperties,
|
||||
&quarantine_properties) != noErr) {
|
||||
VLOG(1) << "Error retrieving quarantine properties for " << path;
|
||||
CFRelease(url);
|
||||
return;
|
||||
}
|
||||
#else
|
||||
if (!CFURLCopyResourcePropertyForKey(url, kCFURLQuarantinePropertiesKey,
|
||||
&quarantine_properties, nullptr)) {
|
||||
VLOG(1) << "Error retrieving quarantine properties for " << path;
|
||||
CFRelease(url);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (quarantine_properties == nullptr) {
|
||||
VLOG(1) << "Error retrieving quarantine properties for " << path;
|
||||
|
Loading…
Reference in New Issue
Block a user