.hy 0 .ad l .nf No Medium Found, 4.3
Prev, Top Notes, Next

Find the Final Entry

The lookup of the final component of the pathname goes just like that of all other components, with two differences:
  1. It is also possible to have a problem with the last component if it is a symbolic link and it should not be followed. For example, using the open(2) O_NOFOLLOW flag:
    open(pathname = "a-symlink", flags = O_RDONLY | O_NOFOLLOW) failed, Too many levels of symbolic links (ELOOP) because O_NOFOLLOW was specified but pathname refers to a symbolic link