summaryrefslogtreecommitdiff
path: root/libbb/obscure.c
diff options
context:
space:
mode:
authorDenys Vlasenko2011-07-08 08:34:28 +0200
committerDenys Vlasenko2011-07-08 08:34:28 +0200
commit8f6ce094dc780010e51e38bf96b9d107cefdd4b6 (patch)
tree9ed961ac07cbd230d12bd3f4f25f257736f1477c /libbb/obscure.c
parent126f2b2853502a7e74e73c11b86a25510a76b9c0 (diff)
downloadbusybox-8f6ce094dc780010e51e38bf96b9d107cefdd4b6.zip
busybox-8f6ce094dc780010e51e38bf96b9d107cefdd4b6.tar.gz
a few tweaks for bionic
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/obscure.c')
-rw-r--r--libbb/obscure.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libbb/obscure.c b/libbb/obscure.c
index dd8cd31..9ecc1f6 100644
--- a/libbb/obscure.c
+++ b/libbb/obscure.c
@@ -109,10 +109,12 @@ static const char *obscure_msg(const char *old_p, const char *new_p, const struc
if (string_checker(new_p, pw->pw_name)) {
return "similar to username";
}
+#ifndef __BIONIC__
/* no gecos as-is, as sub-string, reversed, capitalized, doubled */
if (pw->pw_gecos[0] && string_checker(new_p, pw->pw_gecos)) {
return "similar to gecos";
}
+#endif
/* hostname as-is, as sub-string, reversed, capitalized, doubled */
hostname = safe_gethostname();
i = string_checker(new_p, hostname);