common/rc: fix _check_xfs_scrub_does_unicode on newer versions of libc-bin
[xfstests-dev.git] / common / rc
index c087875a4251ded87c2742d763231d3c8620ec49..c63add750a1baab9ef21135bce9b29d6a6f03f9e 100644 (file)
--- a/common/rc
+++ b/common/rc
@@ -4728,7 +4728,7 @@ _check_xfs_scrub_does_unicode() {
 
        # We only care if xfs_scrub has unicode string support...
        if ! type ldd > /dev/null 2>&1 || \
-          ! ldd "${XFS_SCRUB_PROG}" | grep -q libicui18n; then
+          ! ldd "${XFS_SCRUB_PROG}" 2> /dev/null | grep -q libicui18n; then
                return 1
        fi