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

Commitab5d602

Browse files
committed
Fix directory remove
1 parentdf12009 commitab5d602

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎src/dir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ dir_list_file_internal(parray *files, const char *root, pgFile *parent,
686686

687687
join_path_components(child,parent->path,dent->d_name);
688688

689-
file=pgFileNew(child,omit_symlink,FIO_LOCAL_HOST);
689+
file=pgFileNew(child,omit_symlink,location);
690690
if (file==NULL)
691691
continue;
692692

‎src/utils/file.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ int fio_unlink(char const* path, fio_location location)
664664
}
665665
else
666666
{
667-
returnunlink(path);
667+
returnremove(path);
668668
}
669669
}
670670

@@ -925,7 +925,7 @@ void fio_communicate(int in, int out)
925925
SYS_CHECK(rename(buf,buf+strlen(buf)+1));
926926
break;
927927
caseFIO_UNLINK:
928-
SYS_CHECK(unlink(buf));
928+
SYS_CHECK(remove(buf));
929929
break;
930930
caseFIO_MKDIR:
931931
SYS_CHECK(dir_create_dir(buf,hdr.arg));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp