diff options
author | Mike Frysinger | 2006-07-15 03:59:00 +0000 |
---|---|---|
committer | Mike Frysinger | 2006-07-15 03:59:00 +0000 |
commit | 83169c607be1dbaa8731f73d71cbf990fc4cb05d (patch) | |
tree | 1e303038fd028537939f8c509647a1fb861ea0aa /libbb | |
parent | 91ed1a4a412d316619ae3f3007ca6be782ce6c1c (diff) | |
download | busybox-83169c607be1dbaa8731f73d71cbf990fc4cb05d.zip busybox-83169c607be1dbaa8731f73d71cbf990fc4cb05d.tar.gz |
Tito writes: If the gecos field of an user is empty, obscure reports a false "similar to gecos" error.
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/obscure.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/obscure.c b/libbb/obscure.c index 1112e11..3353df9 100644 --- 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 */ |