From owner-freebsd-questions@FreeBSD.ORG Fri Sep 19 17:28:57 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 04D711065674 for ; Fri, 19 Sep 2008 17:28:57 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 6CE998FC15 for ; Fri, 19 Sep 2008 17:28:56 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (adsl83-215.kln.forthnet.gr [77.49.50.215]) (authenticated bits=128) by igloo.linux.gr (8.14.3/8.14.3/Debian-5) with ESMTP id m8JHSWWK001901 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 19 Sep 2008 20:28:38 +0300 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.3/8.14.3) with ESMTP id m8JHSWVS075560; Fri, 19 Sep 2008 20:28:32 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.3/8.14.3/Submit) id m8JHSVvL075559; Fri, 19 Sep 2008 20:28:31 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) From: Giorgos Keramidas To: Anton Shterenlikht References: <20080919123750.GA84143@mech-cluster238.men.bris.ac.uk> Date: Fri, 19 Sep 2008 20:28:30 +0300 In-Reply-To: <20080919123750.GA84143@mech-cluster238.men.bris.ac.uk> (Anton Shterenlikht's message of "Fri, 19 Sep 2008 13:37:50 +0100") Message-ID: <87skrwjb9d.fsf@kobe.laptop> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-MailScanner-ID: m8JHSWWK001901 X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.85, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.55, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: freebsd-questions@freebsd.org Subject: Re: rsync colon in filename to MSWin fails X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Sep 2008 17:28:57 -0000 On Fri, 19 Sep 2008 13:37:50 +0100, Anton Shterenlikht wrote: > I cannot trasfer a file with a colon via rsync to a Win box. > I've rsync-3.0.4 on the FBSD (sending side) and rsync-2.6.9 > under cygwin on Win (receiving side). I'm not sure what the > error message means: > > % rsync ./http:__en.wikipedia.org_favicon.ico mexas@xxx.xxx.xxx.xxx: > rsync: rename "/cygdrive/c/Documents and Settings/mexas/My Documents/work/.http:__en.wikipedia.org_favicon.ico.8dBX2K" -> "http:__en.wikipedia.org_favicon.ico": No such file or directory (2) > rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1040) [sender=3.0.4] > > Note the extra dot before the file name, and extra suffix at the > end. Is this the expected behaviour? Yes, this is the expected broken behavior of Windows. The ':' character cannot be used in a normal filename in Windows. The bug goes way back, when DOS developers chose to use ':' to denote 'drive names'. > However, to another FBSD box transfer is fine: > > % rsync ./http:__en.wikipedia.org_favicon.ico mexas@zzz.zzz.zzz.zzz: > % UNIX only reserves '/' as the path separator (and in some cases the '\0' character for the end-of-fiename string marker). So the ':' character is valid for file names or directory names. > Is this something to do with Windows, or old rsync version on cygwin? Yes, it has to do with Windows.