delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2000/09/12/14:14:52

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com
To: cygwin-developers AT sources DOT redhat DOT com
Subject: Re: chdir problem
References: <142526531031 DOT 20000911191432 AT logos-m DOT ru>
<20000911132138 DOT A8559 AT cygnus DOT com>
Mime-Version: 1.0 (generated by tm-edit 7.106)
From: Kazuhiro Fujieda <fujieda AT jaist DOT ac DOT jp>
Date: 13 Sep 2000 03:12:16 +0900
In-Reply-To: Chris Faylor's message of Mon, 11 Sep 2000 13:21:38 -0400
Message-ID: <s1sem2pjx8f.fsf@jaist.ac.jp>
Lines: 39
X-Mailer: Gnus v5.3/Emacs 19.34

>>> On Mon, 11 Sep 2000 13:21:38 -0400
>>> Chris Faylor <cgf AT cygnus DOT com> said:

> You suspected right.  Looking at the code, it looks like it may have
> been broken for some time.  It wasn't dealing with a trailing dot
> correctly.
> 
> Thanks for the heads up.  I've checked in a patch.

I guess your latest patch causes the following problem.

~ $ cd /
/ $ ls
ls: .: No such file or directory

The following is the relevant part of the strace log.

 1059   88934 [main] ls 213 mount_info::conv_to_win32_path: conv_to_win32_path (.)
  235   89169 [main] ls 213 normalize_posix_path: src .
  229   89398 [main] ls 213 mount_info::conv_to_posix_path: conv_to_posix_path (C:\cygwin, no-keep-rel, no-add-slash)
  231   89629 [main] ls 213 normalize_win32_path: C:\cygwin = normalize_win32_path (C:\cygwin)
  233   89862 [main] ls 213 mount_info::conv_to_posix_path: / = conv_to_posix_path (C:\cygwin)
  226   90088 [main] ls 213 cwdstuff::get: myself->root: , posix: /
  229   90317 [main] ls 213 cwdstuff::get: (/) = cwdstuff::get (0x240F274, 260, 1, 0)
  235   90552 [main] ls 213 normalize_posix_path:  = normalize_posix_path (.)
  296   90848 [main] ls 213 cwdstuff::get: myself->root: , posix: /
  269   91117 [main] ls 213 cwdstuff::get: (C:\cygwin) = cwdstuff::get (0x240F3D4, 260, 0, 0)
  238   91355 [main] ls 213 mount_info::conv_to_win32_path: (rel), (abs) 0x0(flags) = conv_to_win32_path (.)
  411   91766 [main] ls 213 symlink_info::check: GetFileAttributesA () failed
  245   92011 [main] ls 213 geterrno_from_win_error: windows error 3 == errno 2
  219   92230 [main] ls 213 symlink_info::check: 0 = symlink.check (, 0x240F769) (0x0)
  232   92462 [main] ls 213 path_conv::check: GetVolumeInformation() = ERR, full_path(), set_has_acls(FALSE)
  225   92687 [main] ls 213 stat_worker: stat (, 0x240FE24)
  238   92925 [main] ls 213 stat_worker: -1 = stat (, 0x240FE24)
  222   93147 [main] ls 213 opendir: 0x0 = opendir (.)
____
  | AIST      Kazuhiro Fujieda <fujieda AT jaist DOT ac DOT jp>
  | HOKURIKU  School of Information Science
o_/ 1990      Japan Advanced Institute of Science and Technology

- Raw text -


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