From c4bae04475109a2627b97368e2f21f1f661afa20 Mon Sep 17 00:00:00 2001 From: frank-cizmich Date: Fri, 25 Sep 2015 18:08:07 -0300 Subject: [PATCH] pt-stalk - removed -warn from find for FreeeBSD portability - lp1494082 --- bin/pt-stalk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/pt-stalk b/bin/pt-stalk index 8a54c045..386fecca 100755 --- a/bin/pt-stalk +++ b/bin/pt-stalk @@ -1237,13 +1237,13 @@ purge_samples() { local retention_time="$2" # Delete collect files which more than --retention-time days old. - find "$dir" -warn -type f -mtime +$retention_time -exec rm -f '{}' \; + find "$dir" -type f -mtime +$retention_time -exec rm -f '{}' \; local oprofile_dir="/var/lib/oprofile/samples" if [ -d "$oprofile_dir" ]; then # "pt_collect_" here needs to match $CMD_OPCONTROL --save=pt_collect_$p # in collect(). TODO: fix this - find "$oprofile_dir" -warn -depth -type d -name 'pt_collect_*' \ + find "$oprofile_dir" -depth -type d -name 'pt_collect_*' \ -mtime +$retention_time -exec rm -rf '{}' \; fi }