summaryrefslogtreecommitdiffstats
path: root/logd
diff options
context:
space:
mode:
authorArne Juul <arnej@yahooinc.com>2022-09-12 13:05:01 +0000
committerArne Juul <arnej@yahooinc.com>2022-09-12 13:05:01 +0000
commitf3e97ce9c7e3db25fb60c22e71505823be54f342 (patch)
treea35482cadba931ad0b018741a692cc4e35800899 /logd
parent33c97cd5a14070178a1499fb7c3abe2e00e663fa (diff)
avoid perl, use /usr/bin/stat from coreutils
Diffstat (limited to 'logd')
-rwxr-xr-xlogd/src/apps/retention/retention-enforcer.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/logd/src/apps/retention/retention-enforcer.sh b/logd/src/apps/retention/retention-enforcer.sh
index 24bc61e5764..c4f94f71d89 100755
--- a/logd/src/apps/retention/retention-enforcer.sh
+++ b/logd/src/apps/retention/retention-enforcer.sh
@@ -80,7 +80,7 @@ check_pidfile() {
}
get_mod_time() {
- perl -e 'print (((stat("'"$1"'"))[9]) . "\n")'
+ stat -c %Y -- "$1"
}
maybe_collect() {