Source: dctrl-tools Source-Version: 2.24-3 Severity: important Tags: patch Hi!
The -a option in join-dctrl does not work when passing it a 2 argument. The attached patch should fix it. Thanks, Guillem
diff --git i/join-dctrl/join-dctrl.c w/join-dctrl/join-dctrl.c index f3856ac..056a5aa 100644 --- i/join-dctrl/join-dctrl.c +++ w/join-dctrl/join-dctrl.c @@ -75,7 +75,7 @@ static error_t parse_opt (int key, char * arg, struct argp_state * state) case 'a': if (arg[0] == '1' && arg[1] == '\0') { args->unpairables = 1; - } else if (arg[1] == '2' && arg[1] == '\0') { + } else if (arg[0] == '2' && arg[1] == '\0') { args->unpairables = 2; } else { message(L_FATAL, 0, _("malformed argument to '-a'"));