summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2006-09-24 07:29:44 +0000
committerJim Meyering <jim@meyering.net>2006-09-24 07:29:44 +0000
commit867251d7250ea87617d971faa3234a91c9d587e7 (patch)
treebc6a1f2565860e838bb15eaeab089a320d1762f1
parentb4963a7f707de1556dbbc92cd3f0d7ca58f31a1a (diff)
downloadcoreutils-867251d7250ea87617d971faa3234a91c9d587e7.tar.xz
* tests/tail-2/proc-ksyms: Require that /proc/ksyms be readable
as well as existing.
-rw-r--r--ChangeLog3
-rwxr-xr-xtests/tail-2/proc-ksyms4
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 152e31d30..fcfde53d9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2006-09-24 Jim Meyering <jim@meyering.net>
+ * tests/tail-2/proc-ksyms: Require that /proc/ksyms be readable
+ as well as existing.
+
* tests/ls/stat-dtype: Don't use tmpfs on linux-2.4 or older,
since that predated addition of d_type support.
diff --git a/tests/tail-2/proc-ksyms b/tests/tail-2/proc-ksyms
index 6a035f78c..9733a1cbc 100755
--- a/tests/tail-2/proc-ksyms
+++ b/tests/tail-2/proc-ksyms
@@ -1,7 +1,7 @@
#!/bin/sh
# Prior to textutils-2.0.17, `tail /proc/ksyms' would segfault on Linux.
-# Copyright (C) 2001, 2004 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2004, 2006 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -31,7 +31,7 @@ trap '(exit $?); exit' 1 2 13 15
fail=0
ksyms=/proc/ksyms
-if test -f $ksyms; then
+if test -r $ksyms; then
tail $ksyms > /dev/null || fail=1
fi