lkml.org 
[lkml]   [2001]   [Jan]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] new bug report script
From
Date
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/

\
 
 \ /
  Last update: 2005-03-22 12:52    [W:1.409 / U:0.248 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site