From nobody Mon Aug 28 15:36:59 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 4RZF6N1h7pz4rgT4 for ; Mon, 28 Aug 2023 15:37:00 +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 4RZF6M6yf6z4bwb for ; Mon, 28 Aug 2023 15:36:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1693237020; a=rsa-sha256; cv=none; b=QEQWvQUD1HevDnahtRXfTjVq3CYSc+3Z8EZr82PLTyxkmby5m54lDyaBx5qMhBQIcCJ3AK ONnzA2c5GAjWNOg19bTizZnNVt/D4tkH4kW436f0QMNZ4dVgEGaCep+GtD8VRgGB+fytar s9DWaMvriAodyPWVP+f4vw/RXWW6/F/9ms7amGH+bOoLeJEDsTYmhkTIZA886dUZQc6zJP voG9XpkdeGcmQJxR651vD5I+V+UlILJGGnbW01kEb1UJOyMIVRyDGGowhZeNqqjtJ+LVey FbtXyJ7wf5cuF0ZFA3bZ2vTJ69Is2rw0kMk7QEx1emRQbLakFNrJqT8TtKsFnQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1693237020; 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=LNORtEw5kBntlBmu3XCK1zRZuuP8H9g36XoqeOrAGxg=; b=wOJsidERezmKvSQ1vsn1nyCW9rbWc5wOHGhjhO0r9qdjNjaB1T6G8tizAjHZP8ZdxSKROS Qtt3xxwQlMS1jTBykuNEitQS8qaSw16BFhwJAXZOsqmyTMy9Y3rhARtW71D6h1j+mD83QG Ryg9lDLr2E/rcf+FXL3Pg2QfrV+f9Q2exx3OcaFI6QfAwLxRz1+9MdywKNKS2C8xmtswhP /y9Itll9G6gxMVHQuEPApZ02SK880p6dG2RSW1vC0lVp37EF1BXPyz4/5+BBgUBi/+I/Jy XWIzgvz9k8r7f8tlofQrp3/S6MLHs8zMdmCjNAMP6/uLY3LjVtn0lfhqobq3ig== 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 4RZF6M5mchzRx for ; Mon, 28 Aug 2023 15:36:59 +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 37SFax82038352 for ; Mon, 28 Aug 2023 15:36:59 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 37SFax2q038351 for bugs@FreeBSD.org; Mon, 28 Aug 2023 15:36:59 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 273402] syslog(3) silently drops message when openlog(3) contains spaces in "ident" text Date: Mon, 28 Aug 2023 15:36:59 +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: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: nelson@msu.edu 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273402 Bug ID: 273402 Summary: syslog(3) silently drops message when openlog(3) contains spaces in "ident" text Product: Base System Version: Unspecified Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: nelson@msu.edu Verified as failing under 13.2-RELEASE; verified as working under 11.2-RELE= ASE As of FreeBSD 13.2, the openlog() call is applying semantics to the "ident" argument. This action is not documented - the "man" page states that "ident= " is a string prepended to the syslog text; in earlier versions, this was exactly the treatment. In 13.2, if the "ident" text contains two words, it is reformatted into "word1[word2]; if it contains more than two space-separated words, all subsequent "syslog" messages are silently dropped. I was able to reproduce this from the command line, using the "logger" util= ity: logger 'My test message'=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20 logger -t testing 'My test message'=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 logger -t 'testing 123' 'My test message'=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20 logger -t 'testing 123 456' 'My test message'=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 Results under FreeBSD 11.2: Aug 28 11:21:22 netman1-old Rden: My test message Aug 28 11:21:35 netman1-old testing: My test message Aug 28 11:21:39 netman1-old testing 123: My test message Aug 28 11:21:45 netman1-old testing 123 456: My test message Results under FreeBSD 13.2: Aug 28 11:19:53 netman1-dev Rden[63807]: My test message Aug 28 11:20:02 netman1-dev testing[63813]: My test message Aug 28 11:20:12 netman1-dev testing[123]: - My test message (4th "logger" call is silently dropped) --=20 You are receiving this mail because: You are the assignee for the bug.=