summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorChantry Xavier <shiningxc@gmail.com>2008-01-13 11:08:59 +0100
committerDan McGee <dan@archlinux.org>2008-01-13 12:51:37 -0600
commit8186dc11a90dbc310acaad7ee867ee995adbd6ed (patch)
tree796df8cc0fef61ecb4ad27b3d1b5ec586456a532 /scripts
parentbbe02ec57fd56670dfe0bc08d981ce8a1aa31370 (diff)
Ensure correct dir permissions in the database.
Fix for FS#9176. A previous commit (6e8daa553bbd5) already forced all database files to 644. Now the directories are also forced to 755. Additionally, repo-add now sets the umask to 022, just like makepkg does, to fix the problem at its root. Signed-off-by: Chantry Xavier <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/repo-add.sh.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/repo-add.sh.in b/scripts/repo-add.sh.in
index 98191b62..c7aa11a2 100644
--- a/scripts/repo-add.sh.in
+++ b/scripts/repo-add.sh.in
@@ -28,6 +28,9 @@ confdir='@sysconfdir@'
FORCE=0
REPO_DB_FILE=""
+# ensure we have a sane umask set
+umask 0022
+
msg() {
local mesg=$1; shift
printf "==> ${mesg}\n" "$@" >&1