mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-03-18 21:28:07 +02:00
PBCKP-698 allow relative paths in dir_create_dir
This commit is contained in:
parent
db12a039f6
commit
a29e378f34
@ -155,7 +155,7 @@ dir_create_dir(const char *dir, mode_t mode, bool strict)
|
||||
get_parent_directory(parent);
|
||||
|
||||
/* Create parent first */
|
||||
if (access(parent, F_OK) == -1)
|
||||
if (strlen(parent) > 0 && access(parent, F_OK) == -1)
|
||||
dir_create_dir(parent, mode, false);
|
||||
|
||||
/* Create directory */
|
||||
|
Loading…
x
Reference in New Issue
Block a user