summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorCallan Barrett <wizzomafizzo@gmail.com>2008-12-20 18:42:21 +0900
committerLoui Chang <louipc.ist@gmail.com>2008-12-20 13:02:24 -0500
commit07a27f2f1dc6b6d168c4f443c9f6c8508ff5a288 (patch)
tree589be3cd394c2c81b6b98f7a981fc90b590ee743 /web
parente6f076addd68de7895c6f4cafaa2ef88b18e9e70 (diff)
downloadaurweb-07a27f2f1dc6b6d168c4f443c9f6c8508ff5a288.tar.xz
Add error checking to chmod on package submission
Try submitting an empty form to the aur Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com> Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Diffstat (limited to 'web')
-rw-r--r--web/html/pkgsubmit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php
index 4446648..93d4456 100644
--- a/web/html/pkgsubmit.php
+++ b/web/html/pkgsubmit.php
@@ -241,7 +241,7 @@ if ($_COOKIE["AURSID"]):
}
# Chmod files after everything has been done.
- if (!chmod_group($incoming_pkgdir)) {
+ if (!error && !chmod_group($incoming_pkgdir)) {
$error = __("Could not chmod directory %s.", $incoming_pkgdir);
}