aboutsummaryrefslogtreecommitdiffstats
path: root/flist.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2006-02-13 18:08:45 +0000
committerWayne Davison <wayned@samba.org>2006-02-13 18:08:45 +0000
commit5e7b826a4feccef1cf1ee396cb87ae82243bd6a6 (patch)
treee103bddb359635cb32737864d00bb4f360594808 /flist.c
parentcbc63b9b48a70dba8cac27d372566bf8f9854c7f (diff)
downloadandroid_external_rsync-5e7b826a4feccef1cf1ee396cb87ae82243bd6a6.tar.gz
android_external_rsync-5e7b826a4feccef1cf1ee396cb87ae82243bd6a6.tar.bz2
android_external_rsync-5e7b826a4feccef1cf1ee396cb87ae82243bd6a6.zip
Made the receiver count the size of symlinks in the total_size
value, just like the sender does.
Diffstat (limited to 'flist.c')
-rw-r--r--flist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/flist.c b/flist.c
index 5babe91c..142e1ded 100644
--- a/flist.c
+++ b/flist.c
@@ -1366,7 +1366,7 @@ struct file_list *recv_file_list(int f)
flags |= read_byte(f) << 8;
file = receive_file_entry(flist, flags, f);
- if (S_ISREG(file->mode))
+ if (S_ISREG(file->mode) || S_ISLNK(file->mode))
stats.total_size += file->length;
flist->files[flist->count++] = file;