action: split the execute mode code out of mode_action()

Allowing it to be used by the (to be added later) perm test function.

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
1 file changed