mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-24 14:48:16 -04:00
Don't call do_lstat() unless SUPPORT_LINKS is defined.
This commit is contained in:
1 parent
c259892c3a
commit
f6b384d41f
1 file changed
+7
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user