Date: Wed, 4 Dec 2024 17:09:21 GMT From: Cy Schubert <cy@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: a7f33b501935 - stable/14 - rc.d/var_run: Add missing $(dirname) Message-ID: <202412041709.4B4H9LHA012000@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by cy: URL: https://cgit.FreeBSD.org/src/commit/?id=a7f33b5019353fbb689b860142672c02081f0ee1 commit a7f33b5019353fbb689b860142672c02081f0ee1 Author: Cy Schubert <cy@FreeBSD.org> AuthorDate: 2024-11-25 17:11:47 +0000 Commit: Cy Schubert <cy@FreeBSD.org> CommitDate: 2024-12-04 17:08:27 +0000 rc.d/var_run: Add missing $(dirname) We intend to create the containing directory here. Fix this typo. PR: 282939 (cherry picked from commit 4d58cf6ff905377dbca1ecf004f53133e6b57a46) --- libexec/rc/rc.d/var_run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/rc/rc.d/var_run b/libexec/rc/rc.d/var_run index bf8f0cb737b4..9f0f7fcf37fd 100755 --- a/libexec/rc/rc.d/var_run +++ b/libexec/rc/rc.d/var_run @@ -24,7 +24,7 @@ _var_run_load() { _var_run_save() { if [ ! -d $(dirname ${var_run_mtree}) ]; then - mkdir -p ${var_run_mtree} + mkdir -p $(dirname ${var_run_mtree}) fi mtree -dcbj -p /var/run > ${var_run_mtree} }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202412041709.4B4H9LHA012000>