bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re:


From: Dale R. Worley
Subject: Re:
Date: Mon, 30 Jul 2018 22:40:00 -0400

James Youngman <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]