From c9b07648c01ee3f5c06c95bb80bcdde95ec22731 Mon Sep 17 00:00:00 2001 From: Steven Schubiger Date: Mon, 26 Jan 2015 20:52:54 +0100 Subject: Follow symbolic link to obtain file status --- colorize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- cgit v1.2.3