From d17190df448e81e5192b6804f3c37bff75df82f7 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Fri, 25 Feb 2005 20:28:27 +0000 Subject: [PATCH] Don't add st_size from a device to stats.total_size. --- flist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.34.1