[Bug 264376] [patch] rc.d/hostid needlessly re-cats /etc/hostid

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 31 May 2022 19:16:45 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264376

            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=234357&action=edit
[PATCH] rc.d/hostid: remove useless cat

I tried to post this to freebsd-rc@freebsd.org, but your MX really didn't like
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.