aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.c b/main.c
index 048b1ba..82af0e6 100644
--- a/main.c
+++ b/main.c
@@ -768,6 +768,9 @@ end:
static int add_length(const char *const fpath, const struct stat *const sb,
void *const user)
{
+ if (!S_ISREG(sb->st_mode))
+ return 0;
+
unsigned long long *const l = user;
*l += sb->st_size;