csomh / rpms / rsync

Forked from rpms/rsync 3 years ago
Clone

Blame SOURCES/rsync-3.0.10-lose-track.patch

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