[aur-dev] [PATCH] Add error checking to chmod on package submission

Callan Barrett wizzomafizzo at gmail.com
Sat Dec 20 04:42:21 EST 2008


Try submitting an empty form to the aur

Signed-off-by: Callan Barrett <wizzomafizzo at gmail.com>
---
 web/html/pkgsubmit.php |    2 +-
 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);
 		}
 
-- 
1.6.0.2



More information about the aur-dev mailing list