← Commit list

8172d054d

Denys Vlasenko
Denys Vlasenko
2013-03-29
SUCCESS Duration: 176s

Subject

lineedit: \W on "/bin" should show "bin", not "/bin"

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 →

libbb/lineedit.c+1 -1
@@ -1875,7 +1875,7 @@ static void parse_and_put_prompt(const char *prmt_ptr)
if (c == 'w')
break;
cp = strrchr(pbuf, '/');
- if (cp != NULL && cp != pbuf)
+ if (cp)
pbuf = (char*)cp + 1;
break;
# endif