From 751c9734c5c9a930b61a91a0ea89cffc26a8d7e9 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Mon, 30 May 2016 19:38:42 +0200 Subject: [PATCH] Restrict find action to the /tmp mount --- include/tests_filesystems | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/tests_filesystems b/include/tests_filesystems index e2bfcfa3..7b59e39a 100644 --- a/include/tests_filesystems +++ b/include/tests_filesystems @@ -298,7 +298,7 @@ if [ ${SKIPTEST} -eq 0 ]; then LogText "Test: Searching for old files in /tmp" # Search for files only in /tmp, with an access time older than X days - FIND=`find /tmp -type f -atime +${TMP_OLD_DAYS} 2> /dev/null | sed 's/ /!space!/g'` + FIND=`find /tmp -xdev -type f -atime +${TMP_OLD_DAYS} | sed 's/ /!space!/g'` if [ "${FIND}" = "" ]; then Display --indent 2 --text "- Checking for old files in /tmp" --result OK --color GREEN LogText "Result: no files found in /tmp which are older than 3 months"