This is the mail archive of the cygwin-patches@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: rootdir


Chris Faylor wrote:
> 
> On Thu, Mar 16, 2000 at 02:42:26PM +0100, Corinna Vinschen wrote:
> >- Calling num_entries() only on non remote drives.
> 
> Hmm.  I wonder if this should be configurable somehow.

I agree, but I would do it later in a context, where we
make some more stuff configurable.

> >There's an error in `rootdir()' function. Not in each case
> >it's called with a full path as parameter, a relative path is
> >possible, too.
> 
> This is not an error in the rootdir() function.  It's an error
> in whatever is calling the rootdir function.  I looked through
> the source and did not see a situation where it was being called
> with a relative path.  Can you show me where that is happening?

I've seen this first, when I added the debug output to the end
of path_conv::path_conv(). I was really surprised because I was
sure that all paths are absolute at this point. For testing
purposes simply try `ls -l foo' with foo in your cwd. The resulting
path of path_conv::path_conv is "foo" instead of "cwd\foo".
Unfortunately, the absolute path is essential for many checks...

Hope, this helps,
Corinna

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]