chdir problem

Kazuhiro Fujieda fujieda@jaist.ac.jp
Tue Sep 12 11:14:00 GMT 2000


>>> On Mon, 11 Sep 2000 13:21:38 -0400
>>> Chris Faylor <cgf@cygnus.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@jaist.ac.jp>
  | HOKURIKU  School of Information Science
o_/ 1990      Japan Advanced Institute of Science and Technology


More information about the Cygwin-developers mailing list