From 07a27f2f1dc6b6d168c4f443c9f6c8508ff5a288 Mon Sep 17 00:00:00 2001 From: Callan Barrett Date: Sat, 20 Dec 2008 18:42:21 +0900 Subject: Add error checking to chmod on package submission Try submitting an empty form to the aur Signed-off-by: Callan Barrett Signed-off-by: Loui Chang --- web/html/pkgsubmit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web') diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php index 4446648d..93d44562 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); } -- cgit v1.2.3-24-g4f1b