delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/08/20/17:06:04

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019