mirror of
https://github.com/aaru-dps/fstester.git
synced 2025-12-16 19:24:39 +00:00
Fix retrieval of absolute path in Carbon.
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
int CarbonResourceFork(const char* path)
|
||||
{
|
||||
int ret;
|
||||
unsigned char* absolute_path;
|
||||
char absolute_path[PATH_MAX];
|
||||
OSStatus err;
|
||||
FSRef parentDirRef;
|
||||
TextToUnicodeInfo oTextToUnicodeInfo;
|
||||
@@ -156,9 +156,7 @@ int CarbonResourceFork(const char* path)
|
||||
return count;
|
||||
}
|
||||
|
||||
absolute_path = (unsigned char*)realpath("RSRC", NULL);
|
||||
|
||||
if(absolute_path == NULL)
|
||||
if(realpath("RSRC", absolute_path) == NULL)
|
||||
{
|
||||
log_write("Error getting working directory absolute path.\n", errno);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user