...
Note that this code does not check for hard links,
Compliant Solution (lstat
...
-
...
fopen-fstat
...
)
This solution uses the lstat()-open()fopen-fstat() pattern idiom illustrated in FIO05-A. Identify files using multiple file attributes.
...