delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/07/24/12:53:56

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-Id: <4.3.1.2.20010724125039.02347be0@pop.ma.ultranet.com>
X-Sender: lhall AT pop DOT ma DOT ultranet DOT com
X-Mailer: QUALCOMM Windows Eudora Version 4.3.1
Date: Tue, 24 Jul 2001 12:51:53 -0400
To: Mark Bradshaw <bradshaw AT staff DOT crosswalk DOT com>,
"'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
From: "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com>
Subject: Re: SFTP server when / is c:\
In-Reply-To: <911C684A29ACD311921800508B7293BA010A8AAE@cnmail>
Mime-Version: 1.0
X-GCMulti: 1
X-SMTP-Server: PostCast Server 1.0.0

At 12:44 PM 7/24/2001, Mark Bradshaw wrote:
>SFTP server has some unfortunate logic that occurs when you try to ls, get,
>or put things in root (/).  It's got logic all over the place that creates
>paths that start with "//".  Cygwin doesn't like to deal with these kind of
>paths. <grin>  This causes ls, get, and put (at least) to not work in /.
>
>When you do an ls (for example) sftp server creates pathnames to pass back.
>It does this by combining the path + "/" + filename.  This works great as
>long as the path doesn't includes a final /, which it normally doesn't.
>However, when you switch to / the path is / (obviously).  The ls would then
>end up coming back with things like //., //.., //cygwin.bat, etc.
>
>Seems that unix machines deal with these double slash paths, but cygwin
>doesn't?  Am I on track here.  Either way, I'm wondering which direction is
>the best to attempt a patch with.  Patch sftp-server.c in lots of spots, or
>cygwin in (?) spots?
>
>Mark


An argument could be made either way but I would suggest that its best to
make SFTP as portable as possible.  In that context, patching SFTP is 
best.



Larry Hall                              lhall AT rfk DOT com
RFK Partners, Inc.                      http://www.rfk.com
118 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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