From: Todd C. Miller Date: Mon, 7 Mar 2011 15:08:21 +0000 (-0500) Subject: Fix expr usage w/ GNU expr X-Git-Tag: SUDO_1_8_1~126^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b54425e0412f78c9a6e19e09c713d81b2a90aee0;p=sudo Fix expr usage w/ GNU expr --- diff --git a/sudo.pp b/sudo.pp index 935210e34..c8e771d67 100644 --- a/sudo.pp +++ b/sudo.pp @@ -39,7 +39,7 @@ still allow people to get their work done." %if [rpm,deb] # Convert patch level into release and remove from version - pp_rpm_release="`expr $version : '.*p\([0-9][0-9]*\)' + 1`" + pp_rpm_release="`expr \( $version : '.*p\([0-9][0-9]*\)' \| 0 \) + 1`" pp_rpm_version="`expr $version : '\(.*\)p[0-9][0-9]*'`" pp_rpm_license="BSD" pp_rpm_url="http://www.sudo.ws/"