summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_isolation.c
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2024-04-24 15:04:48 +0200
committerAlejandro Colomar <alx@kernel.org>2024-06-18 22:59:43 +0200
commit40eaf4e4f711978625ecbbdd359caa33d947ec8d (patch)
treed43515f442780dd198bc3b12f784bf03437d13ab /src/nxt_isolation.c
parent3db000a5399fd688ec0d97b38e784778bdd90375 (diff)
downloadunit-40eaf4e4f711978625ecbbdd359caa33d947ec8d.tar.gz
unit-40eaf4e4f711978625ecbbdd359caa33d947ec8d.tar.bz2
fs: Rename nxt_fs_mkdir_all() => nxt_fs_mkdir_p()
"all" is too generic of an attribute to be meaningful. In the context of mkdir(), "parents" is used for this meaning, as in mkdir -p, so it should be more straightforward to readers. Tested-by: Andy Postnikov <apostnikov@gmail.com> Tested-by: Andrew Clayton <a.clayton@nginx.com> Reviewed-by: Andrew Clayton <a.clayton@nginx.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to '')
-rw-r--r--src/nxt_isolation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_isolation.c b/src/nxt_isolation.c
index a2913872..7f25379f 100644
--- a/src/nxt_isolation.c
+++ b/src/nxt_isolation.c
@@ -780,7 +780,7 @@ nxt_isolation_prepare_rootfs(nxt_task_t *task, nxt_process_t *process)
continue;
}
- ret = nxt_fs_mkdir_all(dst, S_IRWXU | S_IRWXG | S_IRWXO);
+ ret = nxt_fs_mkdir_p(dst, S_IRWXU | S_IRWXG | S_IRWXO);
if (nxt_slow_path(ret != NXT_OK)) {
nxt_alert(task, "mkdir(%s) %E", dst, nxt_errno);
goto undo;