diff options
author | Alejandro Colomar <alx@kernel.org> | 2024-04-22 22:40:43 +0200 |
---|---|---|
committer | Alejandro Colomar <alx@kernel.org> | 2024-06-18 22:59:44 +0200 |
commit | a9aed2044c6191b93af0199aa77b26ab39cbbad2 (patch) | |
tree | 59a76e36a27bd0613579e117b3268aa0d5aec733 /src/nxt_runtime.c | |
parent | 7b7b303a729508c4a6a02c2dd46e94c5683ad2a2 (diff) | |
download | unit-a9aed2044c6191b93af0199aa77b26ab39cbbad2.tar.gz unit-a9aed2044c6191b93af0199aa77b26ab39cbbad2.tar.bz2 |
fs: Correctly handle "/" in nxt_fs_mkdir_dirname()
The previous code attempted to mkdir(""), that is an empty string.
Since "/" necessarily exists, just goto out_free.
Fixes: 57fc9201cb91 ("Socket: Created control socket & pid file directories.")
Link: <https://github.com/nginx/unit/issues/742>
Tested-by: Andy Postnikov <apostnikov@gmail.com>
Tested-by: Andrew Clayton <a.clayton@nginx.com>
Reviewed-by: Andrew Clayton <a.clayton@nginx.com>
Cc: Liam Crilly <liam@nginx.com>
Cc: Konstantin Pavlov <thresh@nginx.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions