From owner-freebsd-questions@FreeBSD.ORG Mon Jun 8 19:20:33 2009 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6B1A3106564A for ; Mon, 8 Jun 2009 19:20:33 +0000 (UTC) (envelope-from kurt.buff@gmail.com) Received: from mail-px0-f199.google.com (mail-px0-f199.google.com [209.85.216.199]) by mx1.freebsd.org (Postfix) with ESMTP id 3E8598FC20 for ; Mon, 8 Jun 2009 19:20:33 +0000 (UTC) (envelope-from kurt.buff@gmail.com) Received: by pxi37 with SMTP id 37so2922798pxi.3 for ; Mon, 08 Jun 2009 12:20:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=3rhN+vqZ0BIyo6bFqq4LzVoFeNFCZ/0DPZzgsP8rB64=; b=cKcBAzfu9BnJjPQrkuqgxnSl+4t4qchVphsCjWneRzhKDEa2ehwx/tYcF2B6uGCHQZ pW+zXMXj9w7+9TUWpyEtduV/CTyI7T6nWmJKNyRS445bV0zTYTCYRBSHXUL0yLiAV1eM hIH27Zcy1dgNxH7DiqzyaEW2TLXFSHMxANcS8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=S+hqycZQoRNkqcxTu4o2tFW5wX5UHNYDbNrzm1VHGLNeNR+IsBpo0jFBMBoRRS1OaW PrqiiykB4dkbHMYHySKzC58NK2Z3xPPdtXAnlg7vmcMsUGnHrA9WIOHuk7nbiXTGwSH6 f4io+5jhojNoLiOqVKIw90EoL2ElOhipDdhH8= MIME-Version: 1.0 Received: by 10.143.165.9 with SMTP id s9mr2810276wfo.54.1244488832962; Mon, 08 Jun 2009 12:20:32 -0700 (PDT) In-Reply-To: References: <20080919123750.GA84143@mech-cluster238.men.bris.ac.uk> <87skrwjb9d.fsf@kobe.laptop> Date: Mon, 8 Jun 2009 12:20:32 -0700 Message-ID: From: Kurt Buff To: questions@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Subject: Fwd: 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: Mon, 08 Jun 2009 19:20:33 -0000 Dagnabbit! Meant to also send this to the list. Kurt On Fri, Sep 19, 2008 at 10:28, Giorgos Keramidas wrote: > 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/wor= k/.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=3D3.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. =C2=A0The ':' chara= cter > cannot be used in a normal filename in Windows. =C2=A0The bug goes way ba= ck, > 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). =C2=A0So the ':' charact= er > 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. It does indeed have to do with Windows - see this article: http://msdn.microsoft.com/en-us/library/aa365247.aspx However, there's another thing to know about the use of colons in file names, and it's not simply to do with driver letters - NTFS has a facility called Alternate Data Streams, which was implemented to support Macintoshes, originally. See this article for a start: http://msdn.microsoft.com/en-us/library/aa364404(VS.85).aspx