csomh / rpms / rsync

Forked from rpms/rsync 3 years ago
Clone
7bd114
--- rsync-3.0.9/flist.c	2011-08-27 23:58:04.000000000 +0200
7bd114
+++ rsync-3.0.9/flist.c	2012-10-16 13:25:30.201627611 +0200
7bd114
@@ -369,7 +369,7 @@
7bd114
 	pathname = dir;
7bd114
 	pathname_len = dirlen;
7bd114
 
7bd114
-	if (!dir)
7bd114
+	if (!dir || (*dir=='.' && dirlen==1))
7bd114
 		dir = orig_dir;
7bd114
 
7bd114
 	if (!change_dir(dir, CD_NORMAL)) {