[pacman-dev] [PATCH] dont remove x bit when marking pkgdir RO

Dave Reisner dreisner at archlinux.org
Sun Jul 19 13:50:40 UTC 2015


f170a94c137d355 potentially causes $pkgdirbase/$pkg to be undeleteable
with -R or -C if a previous build was interrupted. We simply can't
traverse to this directory, and rm blows up.
---
 scripts/makepkg.sh.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index c74e84a..ffe7fe5 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -2235,7 +2235,7 @@ else
 		unset pkg
 	fi
 	mkdir -p "$pkgdirbase"
-	chmod a-srwx "$pkgdirbase"
+	chmod a-srw "$pkgdirbase"
 	cd_safe "$startdir"
 
 	if (( ! REPKG )); then
-- 
2.4.6


More information about the pacman-dev mailing list