Skip to content

Commit

Permalink
Add missing parameter to ROOT_PATH_NS_VAR (XINA_SUPPORT) (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
L1ghtmann authored Aug 2, 2023
1 parent 4c7409e commit a2a4086
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rootless.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#ifdef XINA_SUPPORT // Only define this for rootful compilations that need support for xina
#define ROOT_PATH(cPath) !access("/var/LIY", F_OK) ? "/var/jb" cPath : cPath
#define ROOT_PATH_NS(path) !access("/var/LIY", F_OK) ? @"/var/jb" path : path
#define ROOT_PATH_NS_VAR !access("/var/LIY", F_OK) ? [@"/var/jb" stringByAppendingPathComponent:path] : path
#define ROOT_PATH_NS_VAR(path) !access("/var/LIY", F_OK) ? [@"/var/jb" stringByAppendingPathComponent:path] : path
#define ROOT_PATH_VAR(path) !access("/var/LIY", F_OK) ? ({ \
char outPath[PATH_MAX]; \
strlcpy(outPath, "/var/jb", PATH_MAX); \
Expand Down

0 comments on commit a2a4086

Please sign in to comment.