Branch: Tag:

2017-09-28

2017-09-28 13:28:42 by Henrik Grubbström (Grubba) <grubba@grubba.org>

create_configif: Fixed confirmation test in --batch mode.

Using --batch without specifying a value for ok should now work.

Fixes some of [WS-69].

285:    write("\n");    } while(!strlen(password) || (password != passwd2));    -  if (!batch || has_prefix(lower_case(batch->ok), "n")) { +  if (!batch || has_prefix(lower_case(batch->ok || ""), "n")) {    passwd2 = read_string(rl, "Are the settings above correct [Y/n]?", 0, "");    if (has_prefix(lower_case(passwd2), "n")) { -  +  // Exit batch mode and retry interactively. +  batch = 0;    continue;    }    }