summaryrefslogtreecommitdiffstats
path: root/web/lib/aur.inc.php
diff options
context:
space:
mode:
authorcanyonknight <canyonknight@gmail.com>2012-09-20 01:16:46 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2012-09-20 10:58:29 +0200
commita2f9eff861c88fe5fb2a0ad4bf08fc39154d278c (patch)
tree21f88575b01ca63219f8b9ed975800a59909ee6f /web/lib/aur.inc.php
parent4aad42d993619d03040d1a96d133c7784aa4bc28 (diff)
downloadaur-a2f9eff861c88fe5fb2a0ad4bf08fc39154d278c.tar.gz
aur-a2f9eff861c88fe5fb2a0ad4bf08fc39154d278c.tar.xz
Remove unused chmod_group() function
Signed-off-by: canyonknight <canyonknight@gmail.com> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/lib/aur.inc.php')
-rw-r--r--web/lib/aur.inc.php28
1 files changed, 0 insertions, 28 deletions
diff --git a/web/lib/aur.inc.php b/web/lib/aur.inc.php
index d26bdf2e..a23cd3e9 100644
--- a/web/lib/aur.inc.php
+++ b/web/lib/aur.inc.php
@@ -302,34 +302,6 @@ function rm_tree($dirname) {
return;
}
-# Recursive chmod to set group write permissions
-#
-function chmod_group($path) {
- if (!is_dir($path))
- return chmod($path, 0664);
-
- $d = dir($path);
- while ($f = $d->read()) {
- if ($f != '.' && $f != '..') {
- $fullpath = $path.'/'.$f;
- if (is_link($fullpath))
- continue;
- elseif (!is_dir($fullpath)) {
- if (!chmod($fullpath, 0664))
- return FALSE;
- }
- elseif(!chmod_group($fullpath))
- return FALSE;
- }
- }
- $d->close();
-
- if(chmod($path, 0775))
- return TRUE;
- else
- return FALSE;
-}
-
# obtain the uid given a Users.Username
#
function uid_from_username($username="", $dbh=NULL) {