profiles/prefix/linux/profile.bashrc: fix libc code parsing, bug #572902
authorFabian Groffen <grobian@gentoo.org>
Tue, 23 Feb 2016 08:05:34 +0000 (09:05 +0100)
committerFabian Groffen <grobian@gentoo.org>
Tue, 23 Feb 2016 08:05:34 +0000 (09:05 +0100)
profiles/prefix/linux/profile.bashrc

index 693dd8e407ad62d3120e7e7ffc9e6cf1e0ec0fcd..9a48901175255b9f9acebd6e030b6e24fdc97598 100644 (file)
@@ -11,7 +11,9 @@ get_libc_vers_min() {
                        | cut -d. -f2
                return
        elif [[ -x /lib/libc.so.6 || -x /lib64/libc.so.6 ]] ; then
-               /lib/libc.so.6 || lib64/libc.so.6 \
+               {
+                       /lib/libc.so.6 || /lib64/libc.so.6
+               } 2>/dev/null \
                        | head -n1 \
                        | grep -o 'version 2\.[0-9]\+' \
                        | cut -d. -f2