summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeriko One <jeriko.one@gmx.us>2017-11-16 17:26:03 -0800
committerDongHun Kwak <dh0128.kwak@samsung.com>2021-03-11 16:02:12 +0900
commit7c222cb73215ae9bd20bc2f02ae517189c3b6f6a (patch)
tree47e9a87f17d0a0f2ebe7ec703f15ba01a5695f48
parentc8ec757b4d7f1690b523b2a709b84efdab5f9116 (diff)
downloadrsync-7c222cb73215ae9bd20bc2f02ae517189c3b6f6a.tar.gz
rsync-7c222cb73215ae9bd20bc2f02ae517189c3b6f6a.tar.bz2
rsync-7c222cb73215ae9bd20bc2f02ae517189c3b6f6a.zip
[CVE-2017-17434] Check daemon filter against fnamecmp in recv_files().
Change-Id: I77e664ed7f69464054724e60fd2900da452dd641 Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
-rw-r--r--receiver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/receiver.c b/receiver.c
index 571b7da6..4193cb61 100644
--- a/receiver.c
+++ b/receiver.c
@@ -729,7 +729,7 @@ int recv_files(int f_in, int f_out, char *local_name)
break;
}
if (!fnamecmp || (daemon_filter_list.head
- && check_filter(&daemon_filter_list, FLOG, fname, 0) < 0)) {
+ && check_filter(&daemon_filter_list, FLOG, fnamecmp, 0) < 0)) {
fnamecmp = fname;
fnamecmp_type = FNAMECMP_FNAME;
}