This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: [Patch]: chdir
On May 6 11:43, Corinna Vinschen wrote:
> On May 5 23:58, Pierre A. Humblet wrote:
> > 2004-05-06 Pierre Humblet <pierre.humblet@ieee.org>
> >
> > * path.cc (chdir): Do not check for trailing spaces.
> > Do not set native_dir to c:\ for virtual devices.
> > Pass only native_dir to cwd.set.
> > (cwdstuff::set): Assume posix_cwd is already normalized.
>
> Looks pretty good to me. I think calling cwd.set always with a
> NULL pointer is a good idea. The resulting posix path is guaranteed
> to be right.
Ooops:
$ cd /
/: No such file or directory.
$ pwd
/home/corinna
$ cd ..
$ pwd
/home
$ cd ..
..: No such file or directory.
$
Somehow after your patch, Cygwin doesn't like its own root dir anymore.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Co-Project Leader mailto:cygwin@cygwin.com
Red Hat, Inc.