projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91ed1a4
)
Tito writes: If the gecos field of an user is empty, obscure reports a false "similar...
author
Mike Frysinger
<vapier@gentoo.org>
Sat, 15 Jul 2006 03:59:00 +0000
(
03:59
-0000)
committer
Mike Frysinger
<vapier@gentoo.org>
Sat, 15 Jul 2006 03:59:00 +0000
(
03:59
-0000)
libbb/obscure.c
patch
|
blob
|
history
diff --git
a/libbb/obscure.c
b/libbb/obscure.c
index 1112e11cb70f9b47f5818001241b8835a2323a36..3353df949805328490d3bb93e91a0172cf590524 100644
(file)
--- a/
libbb/obscure.c
+++ b/
libbb/obscure.c
@@
-109,7
+109,7
@@
static const char *obscure_msg(const char *old_p, const char *new_p, const struc
return "similar to username";
}
/* no gecos as-is, as sub-string, reversed, capitalized, doubled */
- if (string_checker(new_p, pw->pw_gecos)) {
+ if (
*pw->pw_gecos &&
string_checker(new_p, pw->pw_gecos)) {
return "similar to gecos";
}
/* hostname as-is, as sub-string, reversed, capitalized, doubled */