Re: [PATCH] new bug report script

From: Ulrich Drepper (drepper@redhat.com)
Date: Sun Jan 07 2001 - 20:26:37 EST


Keith Owens <kaos@ocs.com.au> writes:

> 5)
> # glibc versions. Take the last symbolic link,
> # extract the version number from the file it points to.
> if [ `expr "X$1" : 'Xl'` -eq 2 ]
> then
> while [ "X$2" != "X->" ]
> do
> shift
> done
> version2=`echo "$3" | tr -cd '[.0-9]' | \
> sed -e 's/\.\.*/./g' |
> sed -e 's/^\.//g' |
> sed -e 's/\.$//g'`
> fi
> ;;

Why don't you, as the other script suggested, execute libc.so.6?
Symlinks can be missing or can be wrong.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Jan 07 2001 - 21:00:31 EST