The branch main has been updated by bapt:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=d2b4753f06dcabc090080b8c8c91bda00fc8dac3

commit d2b4753f06dcabc090080b8c8c91bda00fc8dac3
Author:     Michael Osipov <michael.osi...@siemens.com>
AuthorDate: 2023-05-04 12:35:59 +0000
Commit:     Baptiste Daroussin <b...@freebsd.org>
CommitDate: 2023-05-15 07:26:48 +0000

    periodic: Use locale-agnostic (ISO 8601) timestamp format
    
    Instead of reyling on locale-sensitive output which can be mangled when 
e-mailed
    use consistently ISO 8601 format which contains the same information as 
'-T'.
    
    PR:             271240
    MFC After:      3 days
---
 usr.sbin/periodic/etc/security/100.chksetuid  | 2 +-
 usr.sbin/periodic/etc/security/110.neggrpperm | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/usr.sbin/periodic/etc/security/100.chksetuid 
b/usr.sbin/periodic/etc/security/100.chksetuid
index 670ae9792021..c850f401d178 100755
--- a/usr.sbin/periodic/etc/security/100.chksetuid
+++ b/usr.sbin/periodic/etc/security/100.chksetuid
@@ -54,7 +54,7 @@ then
                }'`
        find -sx $MP /dev/null \( ! -fstype local \) -prune -o -type f \
            \( -perm -u+x -or -perm -g+x -or -perm -o+x \) \
-           \( -perm -u+s -or -perm -g+s \) -exec ls -liTd \{\} \+ |
+           \( -perm -u+s -or -perm -g+s \) -exec ls -lid -D "%FT%T" \{\} \+ |
        check_diff setuid - "${host} setuid diffs:"
        rc=$?
 fi
diff --git a/usr.sbin/periodic/etc/security/110.neggrpperm 
b/usr.sbin/periodic/etc/security/110.neggrpperm
index 55974eae6345..393c83d061c6 100755
--- a/usr.sbin/periodic/etc/security/110.neggrpperm
+++ b/usr.sbin/periodic/etc/security/110.neggrpperm
@@ -54,7 +54,7 @@ then
            \( \( ! -perm +010 -and -perm +001 \) -or \
            \( ! -perm +020 -and -perm +002 \) -or \
            \( ! -perm +040 -and -perm +004 \) \) \
-           -exec ls -liTd \{\} \+ | tee /dev/stderr | wc -l)
+           -exec ls -lid -D "%FT%T" \{\} \+ | tee /dev/stderr | wc -l)
        [ $n -gt 0 ] && rc=1 || rc=0
 fi
 

Reply via email to