diff options
Diffstat (limited to 'net-nntp/inn/files/inn-2.5.3-tests.patch')
-rw-r--r-- | net-nntp/inn/files/inn-2.5.3-tests.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/net-nntp/inn/files/inn-2.5.3-tests.patch b/net-nntp/inn/files/inn-2.5.3-tests.patch new file mode 100644 index 000000000000..6511508308d6 --- /dev/null +++ b/net-nntp/inn/files/inn-2.5.3-tests.patch @@ -0,0 +1,19 @@ +Certain filesystems (such as reiserfs) cannot properly report +the number of free inodes. In this case, inndf reports an absurdly +high number instead of nothing, which standard df does. +There seems to be some confusion about which FOO_MAX is returned, +so this patch adds an actual value known to be returned. + +See bug #348490. + +--- tests/util/inndf.t ++++ tests/util/inndf.t +@@ -62,7 +62,7 @@ + real=`df -i . | sed 1d | awk '{ print $4 }'` + fi + try=`$inndf -i .` +- if [ "$try" = 4294967295 ] ; then ++ if [ "$try" = 4294967295 ] || [ "$try" = 2147483647 ] ; then + printcount "ok" + else + diff=`expr "$real" - "$try"` |