Skip to content

Commit 6f3c5ec

Browse files
committed
Fix old stats bug that counted devices as symlinks.
1 parent 79fda35 commit 6f3c5ec

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030

3131
- Fixed `rsync -VV` on Cygwin -- it needed a flush of stdout.
3232

33+
- Fixed an old stats bug that counted devices as symlinks.
34+
3335
### ENHANCEMENTS:
3436

3537
- Enhanced rrsync with the `-no-overwrite` option that allows you to ensure

delete.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ enum delret delete_item(char *fbuf, uint16 mode, uint16 flags)
188188
stats.deleted_symlinks++;
189189
#endif
190190
else if (IS_DEVICE(mode))
191-
stats.deleted_symlinks++;
191+
stats.deleted_devices++;
192192
else
193193
stats.deleted_specials++;
194194
}

flist.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2659,7 +2659,7 @@ struct file_list *recv_file_list(int f, int dir_ndx)
26592659
} else if (S_ISLNK(file->mode))
26602660
stats.num_symlinks++;
26612661
else if (IS_DEVICE(file->mode))
2662-
stats.num_symlinks++;
2662+
stats.num_devices++;
26632663
else
26642664
stats.num_specials++;
26652665

0 commit comments

Comments
 (0)