aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhillip Lougher <phillip@squashfs.org.uk>2014-08-27 05:52:20 +0100
committerMohamad Ayyash <mkayyash@google.com>2015-02-23 12:36:43 -0800
commitfcfaf0a140e1af58428fc5079fb7abd8c4803573 (patch)
tree743426603628b9065521855c004d13826fc96461
parent33e5d112381c981451e57d713fc1dcf900b64be0 (diff)
downloadsquashfs-tools-fcfaf0a140e1af58428fc5079fb7abd8c4803573.tar.gz
mksquashfs: add -false_action option
Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
-rw-r--r--squashfs-tools/mksquashfs.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/squashfs-tools/mksquashfs.c b/squashfs-tools/mksquashfs.c
index a1104f8..4ee45b1 100644
--- a/squashfs-tools/mksquashfs.c
+++ b/squashfs-tools/mksquashfs.c
@@ -5219,6 +5219,17 @@ int main(int argc, char *argv[])
if(res == 0)
exit(1);
+ } else if(strcmp(argv[i], "-false_action") == 0 ||
+ strcmp(argv[i], "-fa") ==0) {
+ if(++i == argc) {
+ ERROR("%s: %s missing action\n",
+ argv[0], argv[i - 1]);
+ exit(1);
+ }
+ res = parse_action(argv[i], ACTION_LOG_FALSE);
+ if(res == 0)
+ exit(1);
+
} else if(strcmp(argv[i], "-af") == 0) {
if(++i == argc) {
ERROR("%s: -af missing filename\n", argv[0]);