Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
087173c
)
The size of anything but a regular file is probably not worth thinking
author
Martin Pool
<mbp@samba.org>
Tue, 27 Nov 2001 07:07:36 +0000
(07:07 +0000)
committer
Martin Pool
<mbp@samba.org>
Tue, 27 Nov 2001 07:07:36 +0000
(07:07 +0000)
about.
tls.c
patch
|
blob
|
blame
|
history
diff --git
a/tls.c
b/tls.c
index
2deaabf
..
cd6dec0
100644
(file)
--- a/
tls.c
+++ b/
tls.c
@@
-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
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;
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;
buf.st_size = 0;
- }
permstring(permbuf, buf.st_mode);
permstring(permbuf, buf.st_mode);