cleanup to fix bug/regression in -reg option

This commit is contained in:
F. Duncanh
2025-06-05 12:49:04 -04:00
parent 878ccf2400
commit e306bbf72e
4 changed files with 8 additions and 14 deletions

View File

@@ -1226,7 +1226,7 @@ static void parse_arguments (int argc, char *argv[]) {
pairing_register.append(argv[++i]);
const char * fn = pairing_register.c_str();
if (!file_has_write_access(fn)) {
fprintf(stderr, "%s cannot be written to:\noption \"-key <fn>\" must be to a file with write access\n", fn);
fprintf(stderr, "%s cannot be written to:\noption \"-reg <fn>\" must be to a file with write access\n", fn);
exit(1);
}
}