]> git.saurik.com Git - cycript.git/commitdiff
Support linkers that allow relative library paths.
authorJay Freeman (saurik) <saurik@saurik.com>
Sun, 3 Jan 2016 02:06:45 +0000 (18:06 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Sun, 3 Jan 2016 02:06:45 +0000 (18:06 -0800)
Execute.cpp

index a7a68acc7f2c46eff788f30f78863bc06d15732e..fc19fbabbb3dcca41b9200cde5b5369cd0a84c56 100644 (file)
@@ -2067,7 +2067,8 @@ const char *CYPoolLibraryPath(CYPool &pool) {
     char *lib(pool.strdup(addr.dli_fname));
 
     char *slash(strrchr(lib, '/'));
-    _assert(slash != NULL);
+    if (slash == NULL)
+        return ".";
     *slash = '\0';
 
     slash = strrchr(lib, '/');