From 6c82f74b6ff3cda7c8ef8d08e561125202bb80da Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 23 May 1998 03:13:46 +0000 Subject: [PATCH] don't treat intermediate link directories as links in the relative path code --- flist.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flist.c b/flist.c index d3c07edc..01bcb29c 100644 --- a/flist.c +++ b/flist.c @@ -625,8 +625,11 @@ struct file_list *send_file_list(int f,int argc,char *argv[]) strlcpy(lastpath, fname, sizeof(lastpath)-1); *p = '/'; for (p=fname+1; (p=strchr(p,'/')); p++) { + int copy_links_saved = copy_links; *p = 0; + copy_links = 0; send_file_name(f, flist, fname, 0, 0); + copy_links = copy_links_saved; *p = '/'; } } else { -- 2.34.1