Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a29e378

Browse filesBrowse files
author
Sergey Fukanchik
committed
PBCKP-698 allow relative paths in dir_create_dir
1 parent db12a03 commit a29e378
Copy full SHA for a29e378

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎src/dir.c

Copy file name to clipboardExpand all lines: src/dir.c
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ dir_create_dir(const char *dir, mode_t mode, bool strict)
155155
get_parent_directory(parent);
156156

157157
/* Create parent first */
158-
if (access(parent, F_OK) == -1)
158+
if (strlen(parent) > 0 && access(parent, F_OK) == -1)
159159
dir_create_dir(parent, mode, false);
160160

161161
/* Create directory */

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.