// It must be non-empty and not begin with a comma.
if (str[0] == '\0' || str[0] == ',')
- message_fatal(_("%s: Invalid argument to --block-list"), str);
+ message_fatal(_("%s: Invalid argument to --block-list"),
+ tuklib_mask_nonprint(str));
// Count the number of comma-separated strings.
size_t count = 1;
// Prevent an unlikely integer overflow.
if (count > SIZE_MAX / sizeof(block_list_entry) - 1)
message_fatal(_("%s: Too many arguments to --block-list"),
- str);
+ tuklib_mask_nonprint(str));
// Allocate memory to hold all the sizes specified.
// If --block-list was specified already, its value is forgotten.
if (++i == ARRAY_SIZE(types))
message_fatal(_("%s: Unknown file "
"format type"),
- optarg);
+ tuklib_mask_nonprint(
+ optarg));
opt_format = types[i].format;
break;
while (strcmp(types[i].str, optarg) != 0) {
if (++i == ARRAY_SIZE(types))
message_fatal(_("%s: Unsupported "
- "integrity "
- "check type"), optarg);
+ "integrity check type"),
+ tuklib_mask_nonprint(optarg));
}
// Use a separate check in case we are using different
// liblzma than what was used to compile us.
if (!lzma_check_is_supported(types[i].check))
- message_fatal(_("%s: Unsupported integrity "
- "check type"), optarg);
+ message_fatal(_("%s: Unsupported "
+ "integrity check type"),
+ tuklib_mask_nonprint(optarg));
coder_set_check(types[i].check);
break;
// TRANSLATORS: This is a translatable
// string because French needs a space
// before the colon ("%s : %s").
- message_fatal(_("%s: %s"), optarg,
- strerror(errno));
+ message_fatal(_("%s: %s"),
+ tuklib_mask_nonprint(optarg),
+ strerror(errno));
}
break;
// the messages are included in xz's translations.
message(V_ERROR, _("Error in --filters%s=FILTERS option:"),
filter_num);
- message(V_ERROR, "%s", str);
+ message(V_ERROR, "%s", tuklib_mask_nonprint(str));
message(V_ERROR, "%*s^", error_pos, "");
message_fatal("%s", _(err));
}