More improvements and fixes

This commit is contained in:
topjohnwu
2017-06-03 05:52:49 +08:00
parent 2cdbcc5666
commit ef8d9be633
3 changed files with 28 additions and 4 deletions

View File

@@ -347,6 +347,8 @@ int clone_dir(const char *source, const char *target) {
}
int rm_rf(const char *target) {
if (access(target, F_OK) == -1)
return 0;
struct stat buf;
xlstat(target, &buf);
char *next;