Re: Bug in get_pwd_cwd() in Windows?

2014-07-23 Thread Karsten Blees
Am 23.07.2014 13:53, schrieb Duy Nguyen: > On Wed, Jul 23, 2014 at 2:35 AM, René Scharfe wrote: >> Am 21.07.2014 16:13, schrieb Duy Nguyen: >> >>> This function tests if $PWD is the same as getcwd() using st_dev and >>> st_ino. But on Windows these fields are always zero >>> (mingw.c:do_lstat). If

Re: Bug in get_pwd_cwd() in Windows?

2014-07-23 Thread Duy Nguyen
On Wed, Jul 23, 2014 at 2:35 AM, René Scharfe wrote: > Am 21.07.2014 16:13, schrieb Duy Nguyen: > >> This function tests if $PWD is the same as getcwd() using st_dev and >> st_ino. But on Windows these fields are always zero >> (mingw.c:do_lstat). If cwd is moved away, I think falling back to $PWD

Re: Bug in get_pwd_cwd() in Windows?

2014-07-22 Thread René Scharfe
Am 21.07.2014 16:13, schrieb Duy Nguyen: This function tests if $PWD is the same as getcwd() using st_dev and st_ino. But on Windows these fields are always zero (mingw.c:do_lstat). If cwd is moved away, I think falling back to $PWD is wrong. I don't understand the use of $PWD in the first place.

Bug in get_pwd_cwd() in Windows?

2014-07-21 Thread Duy Nguyen
This function tests if $PWD is the same as getcwd() using st_dev and st_ino. But on Windows these fields are always zero (mingw.c:do_lstat). If cwd is moved away, I think falling back to $PWD is wrong. I don't understand the use of $PWD in the first place. 1b9a946 (Use nonrelative paths instead of