summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2015-07-19 09:50:40 -0400
committerAllan McRae <allan@archlinux.org>2015-07-20 12:50:25 +1000
commit445aa3b52cfcd5630ec10d2ae2c8eeffa2b5c5de (patch)
tree58f579fef39694a5568c67050297445b7e7ea7e2
parentbbab90836b2f7d8b03c862f35bc6e3ff2bd628d2 (diff)
downloadpacman-445aa3b52cfcd5630ec10d2ae2c8eeffa2b5c5de.tar.xz
dont remove x bit when marking pkgdir RO
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. Signed-off-by: Allan McRae <allan@archlinux.org>
-rw-r--r--scripts/makepkg.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 2613b314..8b6557ec 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -2242,7 +2242,7 @@ else
unset pkg
fi
mkdir -p "$pkgdirbase"
- chmod a-srwx "$pkgdirbase"
+ chmod a-srw "$pkgdirbase"
cd_safe "$startdir"
if (( ! REPKG )); then