James Youngman <j...@gnu.org> writes: [From Posix:] >> The st_ino and st_dev fields taken together uniquely identify the >>file within the system. > > Find (for example in the -samefile test) relies on this behaviour. > However, if only one file on the whole system has st_ino==0, this > uniqueness condition still holds. So by itself, st_ino==0 may still > be standard-conforming.
Yes... I see nothing in the Posix specification http://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/types.h.html#tag_13_67 http://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/stat.h.html that suggests st_ino == 0 is forbidden. Dale