From: Wayne Davison Date: Fri, 25 Feb 2005 20:28:27 +0000 (+0000) Subject: Don't add st_size from a device to stats.total_size. X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/d17190df448e81e5192b6804f3c37bff75df82f7 Don't add st_size from a device to stats.total_size. --- diff --git a/flist.c b/flist.c index 05b53f6e..110c3042 100644 --- a/flist.c +++ b/flist.c @@ -963,7 +963,7 @@ skip_filters: file->mode = save_mode; } - if (!S_ISDIR(st.st_mode)) + if (S_ISREG(st.st_mode) || S_ISLNK(st.st_mode)) stats.total_size += st.st_size; return file;