git: a7f33b501935 - stable/14 - rc.d/var_run: Add missing $(dirname)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 04 Dec 2024 17:09:21 UTC
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} }