From f6b384d41f056dea0ec9a0abe873be078fb09570 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Mon, 13 Dec 2004 17:22:32 +0000 Subject: [PATCH] Don't call do_lstat() unless SUPPORT_LINKS is defined. --- tls.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tls.c b/tls.c index 89b64451..80d20c8b 100644 --- a/tls.c +++ b/tls.c @@ -65,8 +65,14 @@ static void list_file(const char *fname) struct tm *mt; char datebuf[50]; char linkbuf[4096]; - - if (do_lstat(fname, &buf) == -1) + int ret; + +#if SUPPORT_LINKS + ret = do_lstat(fname, &buf); +#else + ret = do_stat(fname, &buf); +#endif + if (ret < 0) failed("stat", fname); /* The size of anything but a regular file is probably not -- 2.34.1