[darcs-devel] darcs patch: fix bug in diff when no temp dir exists (and 1 more)

Will will at glozer.net
Fri Dec 3 09:00:16 PST 2004


Thomas Schwinge <schwinge-darcs-devel at nic-nac-project.de> writes:

> On Fri, Dec 03, 2004 at 01:04:29AM -0500, Will wrote:
>> Thu Dec  2 22:45:29 MST 2004  Will <will at glozer.net>
>>   * pass --force-local to tar when filename has colon
>
> Won't running 'tar ... -f ./FILE:NAME ...' solve this problem portably?
> I doubt that '--force-local' is available with every version of tar.
> Or do we already rely on GNU tar?

Looks like GNU tar will still treat it as remote:

  sh-2.05b$ tar cvf ./foo:bar.gz *.txt
  rcmd: getaddrinfo: No address associated with nodename
  tar: ./foo\:bar.gz: Cannot open: (null)
  tar: Error is not recoverable: exiting now

David's conclusion was that colons are rare enough and GNU tar is
common enough that this dependency is safe.

Regards,
Will




More information about the darcs-devel mailing list