git: 4d58cf6ff905 - main - rc.d/var_run: Add missing $(dirname)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 25 Nov 2024 17:17:29 UTC
The branch main has been updated by cy:
URL: https://cgit.FreeBSD.org/src/commit/?id=4d58cf6ff905377dbca1ecf004f53133e6b57a46
commit 4d58cf6ff905377dbca1ecf004f53133e6b57a46
Author: Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2024-11-25 17:11:47 +0000
Commit: Cy Schubert <cy@FreeBSD.org>
CommitDate: 2024-11-25 17:16:59 +0000
rc.d/var_run: Add missing $(dirname)
We intend to create the containing directory here. Fix this typo.
PR: 282939
MFC after: 3 days
---
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 b3d3c3c5b22f..6227890c9f16 100755
--- a/libexec/rc/rc.d/var_run
+++ b/libexec/rc/rc.d/var_run
@@ -27,7 +27,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}
}