Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
lua_pkg_copy: Do not set AT_SYMLINK_NOFOLLOW
Emmanuel Vadot committed 5 years ago
commit ecf659510be5e198dd4d5974c10b6a655353dfcc
parent e1026fe
1 file changed +1 -1
modified libpkg/lua_scripts.c
@@ -122,7 +122,7 @@ lua_pkg_copy(lua_State *L)
	lua_getglobal(L, "package");
	struct pkg *pkg = lua_touserdata(L, -1);

-
	if (fstatat(pkg->rootfd, RELATIVE_PATH(src), &s1, AT_SYMLINK_NOFOLLOW) == -1) {
+
	if (fstatat(pkg->rootfd, RELATIVE_PATH(src), &s1, 0) == -1) {
		lua_pushinteger(L, 2);
		return (1);
	}