diff options
author | Alejandro Colomar <alx@kernel.org> | 2024-04-23 23:25:57 +0200 |
---|---|---|
committer | Alejandro Colomar <alx@kernel.org> | 2024-06-18 22:59:44 +0200 |
commit | c6ce038123e4a2cf1678795cf6d86096be716c21 (patch) | |
tree | 1f308401b7212a60d67535d2e01d5580b633a4da /src | |
parent | 2eb2f60b46feda3d39aed2211b82673ecfd7c67d (diff) | |
download | unit-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')
-rw-r--r-- | src/nxt_fs.c | 2 |
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; |