diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2016-05-30 20:38:42 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2016-05-30 20:38:42 +0300 |
commit | 751c9734c5c9a930b61a91a0ea89cffc26a8d7e9 (patch) | |
tree | 17336d9dbab4601ac98bb1179c5c783477aba37b /include/tests_filesystems | |
parent | d3202ade5dd80e943229d082bf7877317c5f60a6 (diff) |
Restrict find action to the /tmp mount
Diffstat (limited to 'include/tests_filesystems')
-rw-r--r-- | include/tests_filesystems | 2 |
1 files changed, 1 insertions, 1 deletions
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" |