From: Wayne Davison Date: Mon, 13 Dec 2004 17:22:32 +0000 (+0000) Subject: Don't call do_lstat() unless SUPPORT_LINKS is defined. X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/f6b384d41f056dea0ec9a0abe873be078fb09570 Don't call do_lstat() unless SUPPORT_LINKS is defined. --- 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