Changed the new code in delete_one() so that some compilers

don't complain about returning a value from a void function.
This commit is contained in:
Wayne Davison
2004-06-12 21:30:07 +00:00
parent 2c2898a388
commit eb84a83b47

View File

@@ -60,8 +60,10 @@ static void delete_one(char *fn, int is_dir)
}
} else {
if (do_rmdir(fn) != 0) {
if (errno == ENOTDIR && keep_dirlinks)
return delete_one(fn, 0);
if (errno == ENOTDIR && keep_dirlinks) {
delete_one(fn, 0);
return;
}
if (errno != ENOTEMPTY && errno != EEXIST) {
rsyserr(FERROR, errno,
"delete_one: rmdir %s failed",