Backing out bug 550463 from NSPR landing it requires 10.6

This commit is contained in:
timeless@mozdev.org 2010-03-11 20:11:59 +01:00
Родитель ff6a7f1fda
Коммит 00e4ee7f7b
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -614,16 +614,16 @@ pr_LoadCFBundle(const char *name, PRLibrary *lm)
{
CFURLRef bundleURL;
CFBundleRef bundle = NULL;
char *resolvedPath;
char pathBuf[PATH_MAX];
const char *resolvedPath;
CFStringRef pathRef;
/* Takes care of relative paths and symlinks */
resolvedPath = realpath(name, NULL);
resolvedPath = realpath(name, pathBuf);
if (!resolvedPath)
return PR_FAILURE;
pathRef = CFStringCreateWithCString(NULL, resolvedPath, kCFStringEncodingUTF8);
free(resolvedPath);
pathRef = CFStringCreateWithCString(NULL, pathBuf, kCFStringEncodingUTF8);
if (pathRef) {
bundleURL = CFURLCreateWithFileSystemPath(NULL, pathRef,
kCFURLPOSIXPathStyle, true);