diff options
author | Martin Pool <mbp@samba.org> | 2001-11-27 07:07:36 +0000 |
---|---|---|
committer | Martin Pool <mbp@samba.org> | 2001-11-27 07:07:36 +0000 |
commit | 2d4c8e5945375d244a361c2f97f9370f8d88ac11 (patch) | |
tree | 9a8cfae6229f29e15a7a9296ff5cf9d065cef353 /tls.c | |
parent | 087173c887686611d039e10be0e3698843c26930 (diff) | |
download | rsync-2d4c8e5945375d244a361c2f97f9370f8d88ac11.tar.gz rsync-2d4c8e5945375d244a361c2f97f9370f8d88ac11.tar.bz2 rsync-2d4c8e5945375d244a361c2f97f9370f8d88ac11.zip |
The size of anything but a regular file is probably not worth thinking
about.
Diffstat (limited to 'tls.c')
-rw-r--r-- | tls.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -70,11 +70,14 @@ static void list_file (const char *fname) failed ("stat", fname); /* On some BSD platforms the mode bits of a symlink are - * undefined. The size of a link is also somewhat shaky. */ - if (S_ISLNK(buf.st_mode)) { + * undefined. */ + if (S_ISLNK(buf.st_mode)) buf.st_mode &= ~0777; + + /* The size of anything but a regular file is probably not + * worth thinking about. */ + if (!S_ISREG(buf.st_mode)) buf.st_size = 0; - } permstring(permbuf, buf.st_mode); |