From nobody Tue May 31 19:16:45 2022 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 92D5D1B62040 for ; Tue, 31 May 2022 19:16:45 +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 4LCMTT1qlwz3JdC for ; Tue, 31 May 2022 19:16:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 1F02911D7C for ; Tue, 31 May 2022 19:16:45 +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 24VJGjC4012201 for ; Tue, 31 May 2022 19:16:45 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 24VJGjZ2012200 for bugs@FreeBSD.org; Tue, 31 May 2022 19:16:45 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 264376] [patch] rc.d/hostid needlessly re-cats /etc/hostid Date: Tue, 31 May 2022 19:16:45 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: nabijaczleweli@nabijaczleweli.xyz 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 attachments.created 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1654024605; 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=NIDQn+r2RqqqzHjloC1klZchSTniDQ8NinIR/cBYb2I=; b=TLVn8w2I65cv4yGiA2OnDKS3kcXzm/d0j9xXw55r8TIxQqiEUq20i43QS5XBd72WnkEFBv 2CvZ0Ew3KEmoul1Ce7cWzx1qX/QA6wbrARjcMOJpNe075h+1xeGzeza3a11+rkZkF2A2Oq 5zvPxa0Fiubf39GERcFuEdtnz8bOHM+L5DP2fPPovo94jOaWZo40NzGdfBfe0U+NkzNbeR gD3w1iffxCMiKRp8wjojAPJNi7Q3C5QL+FpdA7PQ5q6dSSgtQXQl7JKPYnCXcKlEQiPobm ifVnffsDqQdjaLTN1QThtbGBqFv4gOMDIDqmQHjwnBiEsSvFaVgToJiJS9Sc8Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1654024605; a=rsa-sha256; cv=none; b=PI9tfm4wsu7zmb5Mv6xta9Xm6xq3ZNtPX0l0ziZx5bd6P+kyNNeWam2ozMYEQvXzfjk08u FPoBEBh3MppzBe+ufBnMTPGCtgFaVyXSD7VaM3d/nMx04gmpF8MreGtAb87V2DuVaE3/VH fjbTnM3ntlw812yckR/iNT0/kL4w/YOKTEy3pDW9H/Si88O/GtZ6vOzWJjGgEElImv/50R broWqm8qV4Y3x/3eBOmJJiSh85BdlVkuLZ9MpySNNaSmlm7o74TTdw64A1hsGuC5Y0c7x7 sMApv9ya2LenJbeba4E18/ZhZhWnquzNQCtcZVLFJZoPZ92XHBue+4GxShIY3Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264376 Bug ID: 264376 Summary: [patch] rc.d/hostid needlessly re-cats /etc/hostid Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: nabijaczleweli@nabijaczleweli.xyz Created attachment 234357 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D234357&action= =3Dedit [PATCH] rc.d/hostid: remove useless cat I tried to post this to freebsd-rc@freebsd.org, but your MX really didn't l= ike mine (unrelated reasons, I'll have to call my g.d. ISP again). I'm attaching a patch that just re-uses the already-read-and-validated ID (= and avoids a TOCTTOU, technically, but meh), based on yesterday's git HEAD. --=20 You are receiving this mail because: You are the assignee for the bug.=