From b54425e0412f78c9a6e19e09c713d81b2a90aee0 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 7 Mar 2011 10:08:21 -0500 Subject: [PATCH] Fix expr usage w/ GNU expr --- sudo.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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/" -- 2.40.0