commit | 18eff5a53b61951edbeeb2e3a8fcc474351d1571 | [log] [tgz] |
---|---|---|
author | Phillip Lougher <phillip@squashfs.org.uk> | Mon Jul 14 01:01:26 2014 +0100 |
committer | Mohamad Ayyash <mkayyash@google.com> | Mon Feb 23 12:36:35 2015 -0800 |
tree | 9e5710d490504e04823dbc6399f2bd9f7dd1098c | |
parent | 53c3209168f8eaa4d629e34872e39fe816665258 [diff] |
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>