From: Todd C. Miller Date: Mon, 30 May 1994 01:28:45 +0000 (+0000) Subject: $OSREV is now an int X-Git-Tag: SUDO_1_3_1~206 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9f8f955afa4a224b630d7e21f22115e78c89eca5;p=sudo $OSREV is now an int --- diff --git a/aclocal.m4 b/aclocal.m4 index 12a482088..a4973b108 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -90,7 +90,8 @@ AC_BEFORE([$0], [AC_PROGRAM_CHECK]) if test -n "$UNAMEPROG"; then echo "checking OS based on uname(1)" OS=`$UNAMEPROG -s` - OSREV=`$UNAMEPROG -r` + # this is yucky but we want to make sure $OSREV is an int... + OSREV=`$UNAMEPROG -r | $SEDPROG -e 's/^[A-z \.0]*//' -e 's/\..*//'` if test "$OS" = "SunOS" -a "$OSREV" -ge 5 ; then OS="solaris"