summaryrefslogtreecommitdiff
path: root/src/system.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/system.h')
-rw-r--r--src/system.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/system.h b/src/system.h
index e3d31563c..06f09cba6 100644
--- a/src/system.h
+++ b/src/system.h
@@ -605,7 +605,8 @@ bad_cast (char const *s)
static inline bool
usable_st_size (struct stat const *sb)
{
- return S_ISREG (sb->st_mode) || S_TYPEISSHM (sb) || S_TYPEISTMO (sb);
+ return (S_ISREG (sb->st_mode) || S_ISLNK (sb->st_mode)
+ || S_TYPEISSHM (sb) || S_TYPEISTMO (sb));
}
void usage (int status) ATTRIBUTE_NORETURN;