Don't call do_lstat() unless SUPPORT_LINKS is defined.

This commit is contained in:
Wayne Davison committed 2004-12-13 17:22:32 +00:00
1 parent c259892c3a
commit f6b384d41f
1 file changed
+7 -1
+7 -1
View File
@@ -65,8 +65,14 @@ static void list_file(const char *fname)
struct tm *mt;
char datebuf[50];
char linkbuf[4096];
int ret;
if (do_lstat(fname, &buf) == -1)
#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