Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-tools.git;a=commitdiff;h=a86e39bd5ccfca93dd6739f06b5a0bc465efdd40
commit a86e39bd5ccfca93dd6739f06b5a0bc465efdd40 Author: Miklos Vajna <[email protected]> Date: Fri Feb 17 11:48:30 2012 +0100 repoman: error handling when moving the uploaded file fails diff --git a/repoman b/repoman index 1b3e3a1..538f27a 100755 --- a/repoman +++ b/repoman @@ -169,7 +169,10 @@ server() return 1 fi # strip leading / and any .. - mv -f $tmp "`echo $dest|sed 's|^/||;s|\.\./||g'`" + if ! mv -f $tmp "`echo $dest|sed 's|^/||;s|\.\./||g'`"; then + echo "Failed to move the uploaded file" + rm $tmp + return 1 ;; list) _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
