From nobody Thu May 4 11:19:09 2023 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QBrtQ0nPPz490mW for ; Thu, 4 May 2023 11:19:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QBrtP4f1Rz4Js6 for ; Thu, 4 May 2023 11:19:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683199149; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Zq1EC5XJb3XAlYRnfKmScVZQIlJu6wgxAlYv5dl94sY=; b=ltQODwb4z63OZGZ3lk1l05wrSZNIRWx10xz0BOqJUTfJXt/kDTpCHq80S/8stvSOaXma+k D/kImUOBjy3YocWyzxlwJs7nTOePNN4V6N+q/eC1rvk1MaX5dzIEfRf9oTHwr35Qz1CFE7 MU+sDHVSvnqqhx5cgKhKHfhkD1Av9QeIsPK+BYuXheyymPXBda8Gkm0FUCiL68aU0mA8J8 qT8sPonVIv54LVMZ+UbKzDg5tfdmwh7vZuDP0eVlD1o6OQUS6IOerjNyiUDqoihENEnXvA DWc+9nDbCkSGlgC1qWPFa11fvokNGcQQWsD0VWTBy1+C4RHN5wlfv3ZO3dMA/g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1683199149; a=rsa-sha256; cv=none; b=R2stIijxpV00sSwlhKtphG08xVyju0IYUbkn51LkpTDr82DLYw/k6vfOsJn14he3YQbbER Xdi20AdSwdnQ0bliiXTrFBPmKCQqPBmGDTFpSRyESLWsd/zTyyFsUfa7VBBp1wPi3ssdts u5zd6X4Bu16VF/C2VMMwHmBnJZQuzuiLl9ZHjrhPxyZCA6nA1hrlgu2OGxOuH9xdB9f4mL 9GcHTRHy93wEsoq5cqtvcvQiaePgJoZrBbgEB28mty14qHI+h0k3GFPe2spWUr0UoQmX76 eCQ5lGNB9W5ClE8nBAPM1GsodfH8QIU/3UWDboqeYzoi4T0ePFSJXq9c5SUx2A== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QBrtP3js6z18Gy for ; Thu, 4 May 2023 11:19:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 344BJ9qU026122 for ; Thu, 4 May 2023 11:19:09 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 344BJ9mt026121 for bugs@FreeBSD.org; Thu, 4 May 2023 11:19:09 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 271240] periodic(8) output mangles in e-mails/uses non-portable/-neutral date formats Date: Thu, 04 May 2023 11:19:09 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 12.4-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: michael.osipov@siemens.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271240 Bug ID: 271240 Summary: periodic(8) output mangles in e-mails/uses non-portable/-neutral date formats Product: Base System Version: 12.4-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: michael.osipov@siemens.com This is basically a re-report of https://github.com/freebsd/pkg/issues/2126= for the base system. Here is the diff from the setuid script (/var/log/setuid.today): + 865 -r-sr-xr-x 1 root wheel 6600 30 Nov. 07:24:56 2022 /usr/local/bastille/jails/deblndw013x10j/root/usr/libexec/ulog-helper + 231654 -rwsr-xr-x 1 root wheel 54096 28 M=C3=83=C2=A4rz 14:17:14 2= 023 /usr/local/bastille/jails/deblndw013x10j/root/usr/local/bin/ksu + 15861 -r-sr-sr-x 2 root authpf 39608 30 Nov. 07:29:24 2022 /usr/local/bastille/jails/deblndw013x10j/root/usr/sbin/authpf M=C3=A4rz is mangled because the sender (periodic(8)) cannot set the content encoding on the e-mail. So, basically dependending on the locale the output= can be mangled completely or readable if plain ASCII is used. The source of error comes from: root@deblndw011x2j:/etc/periodic # grep -r "exec ls " . ./security/100.chksetuid: \( -perm -u+s -or -perm -g+s \) -exec ls -liTd \{\} \+ | ./security/110.neggrpperm: -exec ls -liTd \{\} \+ | tee /dev/stder= r | wc -l) After a patch it looks decent and neutral: # ./security/110.neggrpperm Checking negative group permissions: 525974 -------rw- 1 root wheel 0 2023-05-04T13:02:50 /tmp/you One needs to switch '-T' with: 57 -exec ls -lid -D "%FT%T" \{\} \+ | tee /dev/stderr | wc -l) Thus with '-D "%FT%T"'. Willing to provide a Git-formatted patch for both scripts. --=20 You are receiving this mail because: You are the assignee for the bug.=