summaryrefslogtreecommitdiff
path: root/db-functions
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2008-11-22 17:50:59 -0600
committerAaron Griffin <aaronmgriffin@gmail.com>2008-11-22 17:50:59 -0600
commite4da6b3a2f2ba96e6f1ee84758519078c3efc779 (patch)
tree040405c75dbdb5f9354183c12e6070e890dc69bd /db-functions
parent5ed9e55f4d6a26452baaffadba407459ff96f295 (diff)
Set the umask to allow g+w
This should hopefully cover all our permission bases with regard to new files Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'db-functions')
-rw-r--r--db-functions2
1 files changed, 2 insertions, 0 deletions
diff --git a/db-functions b/db-functions
index 740922f..ae1a171 100644
--- a/db-functions
+++ b/db-functions
@@ -37,6 +37,7 @@ repo_lock () { #repo_lock repo-name arch
exit 1
else
/bin/touch "$LOCKFILE"
+ set_umask
fi
}
@@ -47,6 +48,7 @@ repo_unlock () { #repo_unlock repo-name arch
else
rm -f "$LOCKFILE"
fi
+ restore_umask
}
# Get the package name from the filename