Alexander Viro wrote:
> Oh? Please, try to do the following:
[...]
Sure, but this is a completely different scenario ! If you change the
directory (chdir), you can obviously get a different result.
Again, POSIX ANSI/IEEE Std 1003.1 (2nd ed., 1996-07-12), section 2.3.6,
page 32, 2nd paragraph:
"The special filename, dot, refers to the directory specified by its
predecessor."
In the cd /foo; mount /foo; stat bar; stat ./bar case, both stats
should return the same result, because the refer to the same directory.
Note that I'm not advocating that they should also equal stat /foo/bar
(which would be more like your example).
- Werner
-- _________________________________________________________________________ / Werner Almesberger, ICA, EPFL, CH werner.almesberger@ica.epfl.ch / /_IN_N_032__Tel_+41_21_693_6621__Fax_+41_21_693_6610_____________________/- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Tue Mar 07 2000 - 21:00:19 EST