← Commit list

67e631a278

Joshua Rogers
Joshua Rogers
2026-09-18
SUCCESS Duration: 429s

Subject

tool_getparam: do not print the value of a redacted argument

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

src/tool_getparam.c+6 -2
@@ -3063,8 +3063,12 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
}
if(has_leading_unicode((const unsigned char *)nextarg)) {
- warnf("The argument '%s' starts with a Unicode character. "
- "Maybe ASCII was intended?", nextarg);
+ if(a->desc & ARG_CLEAR)
+ warnf("The argument to --%s starts with a Unicode character. "
+ "Maybe ASCII was intended?", a->lname);
+ else
+ warnf("The argument '%s' starts with a Unicode character. "
+ "Maybe ASCII was intended?", nextarg);
}
switch(ARGTYPE(a->desc)) {
case ARG_FILE: