Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
elf: prevent absolute path for DT_NEEDED libs
Baptiste Daroussin committed 1 year ago
commit 7a0cf341e850e5136338bac2c85e6151686f53d4
parent d553983
1 file changed +6 -0
modified libpkg/pkg_elf.c
@@ -232,6 +232,12 @@ analyse_elf(struct pkg *pkg, const char *fpath)
		if (dyn->d_tag == DT_SONAME) {
			pkg_addshlib_provided(pkg, shlib, flags);
		} else if (dyn->d_tag == DT_NEEDED) {
+
			/*
+
			 * some packages record fullpath to a lib
+
			 * neovim is an example, skip them for now
+
			 */
+
			if (*shlib == '/')
+
				continue;
			pkg_addshlib_required(pkg, shlib, flags);
		}
	}