httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralf S. Engelschall" <...@engelschall.com>
Subject Re: [PATCH] 1.3 GuessOS - fix mishandling of slashes from uname -m
Date Thu, 15 Mar 2001 18:30:54 GMT

In article <m3hf0vm3kn.fsf@adsl-77-241-65.rdu.bellsouth.net> you wrote:
> Jim Jagielski <jim@jaguNET.com> writes:
> 
>> Could you repost?
> 
> Index: GuessOS
> ===================================================================
> RCS file: /cvs/apache/apache-1.3/src/helpers/GuessOS,v
> retrieving revision 1.71
> diff -u -r1.71 GuessOS
> --- GuessOS     2001/02/16 14:27:18     1.71
> +++ GuessOS     2001/03/13 11:07:57
> @@ -33,6 +33,8 @@
> SYSTEM=`(uname -s) 2>/dev/null`  || SYSTEM="unknown"
> VERSION=`(uname -v) 2>/dev/null` || VERSION="unknown"
> 
> +# Some HP machines have slashes.
> +MACHINE=`echo ${MACHINE}|sed -e 's/\//-/'`
> 
> # Now test for ISC and SCO, since it is has a braindamaged uname.
> #

Hmmm... using dashes instead could be not wise, because then the output
strings might be no longer the de-facto standadized dash-delimited
"triples" of the form <cpuarch>-<vendor>-<system><systemversion>.

                                       Ralf S. Engelschall
                                       rse@engelschall.com
                                       www.engelschall.com

Mime
View raw message