]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
* tests/tail-2/proc-ksyms: Require that /proc/ksyms be readable
authorJim Meyering <jim@meyering.net>
Sun, 24 Sep 2006 07:29:44 +0000 (07:29 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 24 Sep 2006 07:29:44 +0000 (07:29 +0000)
as well as existing.

ChangeLog
tests/tail-2/proc-ksyms

index 152e31d307c10ab41a77f7e725d13be195a57042..fcfde53d92039e8a636dcf007386ab6f5e9fbd2a 100644 (file)
--- 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.
 
index 6a035f78c6dd41864b4a1c300f198605c00788b7..9733a1cbcb0f6170a18ce93f89e327d9f03e092b 100755 (executable)
@@ -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