csomh / rpms / rsync

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