git: 2904d7309b3d - stable/13 - rc.d/var_run: Add missing $(dirname)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 04 Dec 2024 17:09:47 UTC
The branch stable/13 has been updated by cy:
URL: https://cgit.FreeBSD.org/src/commit/?id=2904d7309b3d013b5a1d4279d7bfb32e44666dcd
commit 2904d7309b3d013b5a1d4279d7bfb32e44666dcd
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:09:41 +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 daff06ce1a3f..eb9cdbd59305 100755
--- a/libexec/rc/rc.d/var_run
+++ b/libexec/rc/rc.d/var_run
@@ -29,7 +29,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}
}