mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-02-05 12:43:07 -05:00
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user