actions: use access() as an initial validity check in contained_followlink()

if access() returns error then the symlink cannot be dereferenced
for some reason, and it is pointless walking the symlink because it
will fail.  This also deals with cases where a symbolic link is
circular, generating -ELOOP, and so we don't have to worry about
dealing with loops ourselves.

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
2 files changed
tree: 9e5710d490504e04823dbc6399f2bd9f7dd1098c
  1. kernel/
  2. kernel-2.4/
  3. squashfs-tools/
  4. README