Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
From: David Rothenberger <daveroth@acm.org>
Message-ID: <16195.58022.755849.793592@phish.entomo.com>
Date: Wed, 20 Aug 2003 14:05:42 -0700
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: "Biederman, Steve" <steve_biederman@mentorg.com>
Cc: "'cygwin@cygwin.com'" <cygwin@cygwin.com>
Subject: tar and remote machines (was RE: What is the minimum needed to run gtar?)
References: <3D5E0EA708C5DD44B7575859D366728C2DC2F2@svr-orw-exc-02.wv.mentorg.com>
Reply-To: cygwin@cygwin.com

Biederman, Steve writes:
 > 
 > (Resuming an earlier discussion ...)
 > 
 > In my Cygwin environment, I can invoke tar with Windows-style pathnames,
 > i.e, "tar -cf C:/temp/foo.tar ."  My non-Cygwin users can't; for them, the
 > "C:" is interpreted as a remote machine name and they get "cannot execute
 > remote shell".

In my Cygwin environment, "tar -cf C:/temp/foo.tar ." does not work;
I get an error about C being a hostname.  Looking at the tar code,
this is what I'd expect.  The comment in the code is

/* A filename is remote if it contains a colon not preceded by a slash,
   to take care of `/:/' which is a shorthand for `/.../<CELL-NAME>/fs'
   on machines running OSF's Distributing Computing Environment (DCE) and
   Distributed File System (DFS).  However, when --force-local, a
   filename is never remote.  */

I don't think the problem your non-Cygwin users are having has
anything to do with Cygwin, and I'm mystified as to why it works
correctly for you.  Are you using the same version of tar and the
cygwin DLL as your "non-Cygwin" users?

 > What is the correct solution to this problem?

As you guessed, provide the --force-local switch.  Alternatively,
download the tar source, patch rmt.h to ignore remote paths, and
recompile.

Dave


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

