actions: contained() should check for nonstandard_pathname

If nonstandard_pathname is set, then we have a symlink entered on the
command line, this by definition is a dangling symlink.

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
diff --git a/squashfs-tools/action.c b/squashfs-tools/action.c
index d22017e..e65cc33 100644
--- a/squashfs-tools/action.c
+++ b/squashfs-tools/action.c
@@ -2331,6 +2331,11 @@
 	if (!file_type_match(action_data->buf->st_mode, ACTION_LNK))
 		return 1;
 
+	/* if nonstandard_pathname is set, then this is a symlink entered on the
+	 * command line, this by definition is a dangling symlink */
+	if(action_data->dir_ent->nonstandard_pathname)
+		return 0;
+
 	bytes = readlink(action_data->pathname, s, 65536);
 	if(bytes < 1 || bytes == 65536)
 		/* reading symlink failed or (unlikely) the symlink was longer