> From: "Milan Dadok" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Subject: rsync patch > Date: Sat, 17 Mar 2001 21:31:54 +0100 > Hello > I'm to new to rsync. I compiled version rsync-2.4.6 on WinNT using CygWin. > Client mode works fine. After I setup rsync as server everytime I get on client > "pop_dir inetpub : directory not exists" > I Found than function clean_fname in utils.c replace all // with single /. > Than is incorect, because CygWin is using paths like '//c/bin' etc. > I make patch to this function. There can I send this patch to help others? > Milan Dadok > [EMAIL PROTECTED] I wanted to check with Dave and other people who've worked in that area whether they thought this would be OK. We need to fix the comment syntax of the patch too. I see sanitize_paths() also tries to eliminate double slashes, but I think we don't need to change it because UNC names should never be used inside a module. -- Martin --- S:\Unix\Original\rsync-2.4.6\util.c (null)+++ S:\Unix\rsync-2.4.6\util.c Sat Mar 17 16:41:01 2001 @@ -640,7 +640,9 @@ } } - if ((p=strstr(name,"//"))) { + // replace '//' with single '/', but not on start + // because on CygWin is using path like '//c/winnt/' etc. + if ((p=strstr(name,"//")) && (p!=name)) { modified = 1; while (*p) { p[0] = p[1];