mirror of
https://github.com/aaru-dps/fstester.git
synced 2025-12-16 19:24:39 +00:00
Only try path access to resource fork in Darwin if it is defined as existing.
This commit is contained in:
@@ -48,6 +48,7 @@ void DarwinResourceFork(const char* path)
|
||||
#ifdef HAVE_CARBON
|
||||
ret = CarbonResourceFork(path);
|
||||
#endif
|
||||
#ifdef _PATH_RSRCFORKSPEC
|
||||
|
||||
// Correctly done by Carbon, if not fallback to _PATH_RSRCFORKSPEC
|
||||
if(ret > 0) return;
|
||||
@@ -322,4 +323,5 @@ void DarwinResourceFork(const char* path)
|
||||
wRc,
|
||||
cRc,
|
||||
rRc);
|
||||
}
|
||||
#endif // _PATH_RSRCFORKSPEC
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user