Skip to content

Commit dffff3d

Browse files
authored
don't relink /nix/store paths (#16)
1 parent 4eba5ae commit dffff3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rtld_loader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ char* la_objsearch(const char* name, uintptr_t* cookie, unsigned int flag) {
3939
log_debug(", ");
4040
log_debug_int(flag);
4141
log_debug(")\n");
42-
if (flag == LA_SER_DEFAULT) {
42+
if (flag == LA_SER_DEFAULT && strncmp(name, "/nix/store", 10) != 0) {
4343
char* libname = my_strrchr(name, '/');
4444
if (libname != NULL) {
4545
libname++; // advance past the /

0 commit comments

Comments
 (0)