[Bug 282939] /etc/rc.d/var_run:_var_run_save() minor bug in hardly visited code path

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 23 Nov 2024 22:22:28 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282939

            Bug ID: 282939
           Summary: /etc/rc.d/var_run:_var_run_save() minor bug in hardly
                    visited code path
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: conf
          Assignee: bugs@FreeBSD.org
          Reporter: milios@ccsys.com

freebsd-src/libexec/rc/rc.d/var_run:30 says:
    mkdir -p ${var_run_mtree}

while it certainly meant to say:
    mkdir -p $(dirname ${var_run_mtree})

CURRENT and all supported releases have this issue

it's
line 30 on CURRENT (main),
line 27 on releng/14.2,
line 32 on releng/13.4

if anybody wants me to submit a pull request to each supported branch i will
but it sure seems quick for any committer to go ahead and fix

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