summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_isolation.c
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2024-04-24 23:31:54 +0200
committerAlejandro Colomar <alx@kernel.org>2024-06-18 22:59:45 +0200
commitd96d583328f614c658d42f5bb0d2a0f81621327e (patch)
tree66cacc47d4579dceec618035d3c505d7a3f88dbe /src/nxt_isolation.c
parent2e2e5d1e8e862c5d55cda0035eef90c5b6596112 (diff)
downloadunit-d96d583328f614c658d42f5bb0d2a0f81621327e.tar.gz
unit-d96d583328f614c658d42f5bb0d2a0f81621327e.tar.bz2
Use octal instead of mode macros
They are more readable. And we had a mix of both styles; there wasn't really a consistent style. 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 'src/nxt_isolation.c')
-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 7f25379f..909a43f4 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_p(dst, S_IRWXU | S_IRWXG | S_IRWXO);
+ ret = nxt_fs_mkdir_p(dst, 0777);
if (nxt_slow_path(ret != NXT_OK)) {
nxt_alert(task, "mkdir(%s) %E", dst, nxt_errno);
goto undo;