aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Steven Schubiger <stsc@refcnt.org> 2015-01-26 20:52:54 +0100
committerGravatar Steven Schubiger <stsc@refcnt.org> 2015-01-26 20:52:54 +0100
commitc9b07648c01ee3f5c06c95bb80bcdde95ec22731 (patch)
treeddf25a81a62cdf6547f821c627d8cbbdd71ab3f4
parentcc3c8db022b248d3b862757379b4df529d07b6c1 (diff)
downloadcolorize-c9b07648c01ee3f5c06c95bb80bcdde95ec22731.tar.gz
colorize-c9b07648c01ee3f5c06c95bb80bcdde95ec22731.tar.bz2
Follow symbolic link to obtain file status
-rw-r--r--colorize.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/colorize.c b/colorize.c
index cc89193..2637dab 100644
--- a/colorize.c
+++ b/colorize.c
@@ -671,7 +671,7 @@ process_file_arg (const char *file_string, const char **file, FILE **stream)
int ret;
errno = 0;
- ret = lstat (file, &sb);
+ ret = stat (file, &sb);
if (ret == -1)
vfprintf_fail (formats[FMT_FILE], file, strerror (errno));