Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b33b791
)
Fix a bug with rsync -R --delete from ./ as reported in PR#1532
author
David Dykstra
<dwd@samba.org>
Wed, 24 Feb 1999 22:38:36 +0000
(22:38 +0000)
committer
David Dykstra
<dwd@samba.org>
Wed, 24 Feb 1999 22:38:36 +0000
(22:38 +0000)
flist.c
patch
|
blob
|
blame
|
history
diff --git
a/flist.c
b/flist.c
index
3a44aa7
..
f7ab5a9
100644
(file)
--- a/
flist.c
+++ b/
flist.c
@@
-638,7
+638,16
@@
struct file_list *send_file_list(int f,int argc,char *argv[])
l = strlen(fname);
if (l != 1 && fname[l-1] == '/') {
- strlcat(fname,".",MAXPATHLEN);
+ if ((l == 2) && (fname[0] == '.')) {
+ /* Turn ./ into just . rather than ./.
+ This was put in to avoid a problem with
+ rsync -aR --delete from ./
+ The send_file_name() below of ./ was
+ mysteriously preventing deletes */
+ fname[1] = 0;
+ } else {
+ strlcat(fname,".",MAXPATHLEN);
+ }
}
if (link_stat(fname,&st) != 0) {