summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_fs.c
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2024-04-23 23:25:57 +0200
committerAlejandro Colomar <alx@kernel.org>2024-06-18 22:59:44 +0200
commitc6ce038123e4a2cf1678795cf6d86096be716c21 (patch)
tree1f308401b7212a60d67535d2e01d5580b633a4da /src/nxt_fs.c
parent2eb2f60b46feda3d39aed2211b82673ecfd7c67d (diff)
downloadunit-c6ce038123e4a2cf1678795cf6d86096be716c21.tar.gz
unit-c6ce038123e4a2cf1678795cf6d86096be716c21.tar.bz2
fs: Accept relative paths in nxt_fs_mkdir_p()
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 'src/nxt_fs.c')
-rw-r--r--src/nxt_fs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_fs.c b/src/nxt_fs.c
index a02c51af..3c33837c 100644
--- a/src/nxt_fs.c
+++ b/src/nxt_fs.c
@@ -18,7 +18,7 @@ nxt_fs_mkdir_p(const u_char *dir, mode_t mode)
dirlen = nxt_strlen(dir);
- nxt_assert(dirlen < PATH_MAX && dirlen > 1 && dir[0] == '/');
+ nxt_assert(dirlen < PATH_MAX && dirlen > 1);
dst = path;
start = (char *) dir;