diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-11-22 17:48:58 -0600 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-11-22 17:48:58 -0600 |
commit | 5ed9e55f4d6a26452baaffadba407459ff96f295 (patch) | |
tree | 99d7abae67141d6f45187a92f80315db07b3fba2 /db-functions | |
parent | a7a268356fac69c94d99315553f4d61fa2744261 (diff) |
Remove 'copy_helper' as chmodding is fail
The chmod doesn't work unless the user is the owner of the file
Resorting to umask changes here
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'db-functions')
-rw-r--r-- | db-functions | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/db-functions b/db-functions index 8c8c667..740922f 100644 --- a/db-functions +++ b/db-functions @@ -76,13 +76,4 @@ check_pkg_arch () { #check_pkg_arch pkgfile arch fi } -# Simple helper function to ensure we always -# have proper DB permissions -copy_helper () { #copy_helper file dest - /bin/cp $1 $2 || return 1 - dir=$2 - [ -f $dir ] && dir=$(dirname $dir) - /bin/chmod 664 "$dir/$(basename $1)" || return 1 -} - # vim: set ts=4 sw=4 noet ft=sh: |