Don't add st_size from a device to stats.total_size.
authorWayne Davison <wayned@samba.org>
Fri, 25 Feb 2005 20:28:27 +0000 (20:28 +0000)
committerWayne Davison <wayned@samba.org>
Fri, 25 Feb 2005 20:28:27 +0000 (20:28 +0000)
flist.c

diff --git a/flist.c b/flist.c
index 05b53f6..110c304 100644 (file)
--- 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;