From 094d76cb8c5994ae29582238a48d8a1ee187b913 Mon Sep 17 00:00:00 2001 From: Masahiko AMANO Date: Sun, 25 Dec 2022 02:55:57 +0300 Subject: [PATCH] fix(cli): if both -s and -u options are set then unset both of them --- src/cli.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cli.c b/src/cli.c index 0d9e9e5..4bb398b 100644 --- a/src/cli.c +++ b/src/cli.c @@ -329,6 +329,10 @@ int cli(int argc, char **argv) { break; } } + if (opt_s && opt_u) { + opt_s = 0; + opt_u = 0; + } FILE *config = fopen("./tfm-config", "r"); if (config == NULL) { fprintf(stderr, ERROR("Config file not found\n"));