delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/12/15/21:17:37

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: <3A3AD083.6A189691@airflash.com>
Date: Fri, 15 Dec 2000 18:16:35 -0800
From: "Alex Tang" <altitude AT airflash DOT com>
X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Possible Bug in file length calculation in normalize_posix_path
References: <3A3A93CD DOT FADEBCE AT airflash DOT com> <20001215170313 DOT A29060 AT redhat DOT com> <20001215171733 DOT A29106 AT redhat DOT com>

Thanks Christopher.

I hate to ask such newbie like questions, but i'm having some problems building various things (hopefully, when i get this worked out, i'll be able to provide some diffs...)

I have a couple of questions:

   * Using the program that I sent the source for in the first msg, I would like to be able to compile it using a debug version of the libraries so I can use gdb to step into
     the normalize_posix_path() function.  What are the command line args to gcc that I should use to do this?

   * I'm trying to build the cygwin1.dll (so i can get into the debug info) from source.  I've retrieved both the latest snapshot (12/13) as well as the tip from the CVS
     tree.

     The docs at "http://www.cygwin.com/contrib.html" say "Start by building the comp-tools directory", however I can find no such directory.

     If i just do a

          ./configure
          make

     in the top level of the snapshot as well as the checked out tree, however both fail at different points in the build process.  I've tried fixing some of these problems,
     however the build breaks in too many places.

     I am using the full Cygwin1.1.6 distribution as my base (
        o bash-2.4,
        o gcc:

               bash-2.04$ gcc -v
               Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2-5/specs
               gcc version 2.95.2-5 19991024 (cygwin experimental)

        o make-2.95.2-5 19991024 (cygwin experimental).

I must be doing something really dumb.

Can someone tell me what's up?

Thanks again.

...alex...


Christopher Faylor wrote:

> >>the function is taking the length of both the destination and
> >>source strings and seeing if they are greater than MAX_PATH.  Is
> >>this a bug?  Or am I missing something here.  I apologize for not
> >>being more sure, however I haven't been able to build the
> >>library, and I can't get the latest gdb to look step into the
> >>lstat call to really verify what's going on.
> >
> >"dst" in this case is the current working directory, so this is not
> >wrong.  It's calculating the length of the current working directory +
> >the length of a relative path.
>
> Just to clarify.  The addition is not wrong because the length of dst is
> being added to the length of src but the actual calculation does not take
> any cleanup of ../ whatever into account.  This could probably be rectified.
> I'll take a stab at checking something into CVS tonight.
>
> cgf
>
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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