diff options
author | Alejandro Colomar <alx@kernel.org> | 2024-04-24 15:02:11 +0200 |
---|---|---|
committer | Alejandro Colomar <alx@kernel.org> | 2024-06-18 22:59:43 +0200 |
commit | 3db000a5399fd688ec0d97b38e784778bdd90375 (patch) | |
tree | 5a47332b2046084e5b9c6b15a55a229347966e05 /src/nxt_runtime.c | |
parent | 3501a50ffb93756e145295021ff9313ac77f1ba9 (diff) | |
download | unit-3db000a5399fd688ec0d97b38e784778bdd90375.tar.gz unit-3db000a5399fd688ec0d97b38e784778bdd90375.tar.bz2 |
fs: Rename nxt_fs_mkdir_parent() => nxt_fs_mkdir_dirname()
"dirname" is the usual way to refer to the directory part of a path
name. See for example dirname(1), or the dirname builtin in several
languages. Also, in the context of mkdir(), "parents" is used to refer
to mkdir -p, which is too similar to "parent", so it can lead to
confusion.
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_runtime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_runtime.c b/src/nxt_runtime.c index 0e7f879e..b368647e 100644 --- a/src/nxt_runtime.c +++ b/src/nxt_runtime.c @@ -1490,7 +1490,7 @@ nxt_runtime_pid_file_create(nxt_task_t *task, nxt_file_name_t *pid_file) file.name = pid_file; - nxt_fs_mkdir_parent(pid_file, 0755); + nxt_fs_mkdir_dirname(pid_file, 0755); n = nxt_file_open(task, &file, O_WRONLY, O_CREAT | O_TRUNC, NXT_FILE_DEFAULT_ACCESS); |