[Patch] kernel-tests master: Fix path to ignore-files.sh in sysfs-perms test

Donavan Lance tusklahoma at gmail.com
Tue Aug 4 14:29:06 UTC 2015


Without this change the sysfs-perms test was failing and printing
"ignore-files.sh: command not found" into the kernel-tests log.

This patch fixes that error and allows the sysfs-perms test to run.

Signed-off-by: Donavan Lance <tusklahoma at gmail.com>
---
 default/sysfs-perms/runtest.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/default/sysfs-perms/runtest.sh b/default/sysfs-perms/runtest.sh
index 351af76..54c4c28 100755
--- a/default/sysfs-perms/runtest.sh
+++ b/default/sysfs-perms/runtest.sh
@@ -6,7 +6,7 @@ COUNT=$(find /sys -type f -perm 666 | ./ignore-files.sh | wc -l)

 if [ "$COUNT" != "0" ]; then
        echo Found world-writable files in sysfs.
-       find /sys -type f -perm 666 | ignore-files.sh
+       find /sys -type f -perm 666 | ./ignore-files.sh
        exit -1
 fi

-- 
2.4.3


More information about the kernel mailing list