Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commita29e378

Browse files
author
Sergey Fukanchik
committed
PBCKP-698 allow relative paths in dir_create_dir
1 parentdb12a03 commita29e378

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/dir.c

Lines 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)

[8]ページ先頭

©2009-2025 Movatter.jp