summaryrefslogtreecommitdiffstats
path: root/usr.bin/chpass/table.c
diff options
context:
space:
mode:
authorthepish <thepish@FreeBSD.org>1998-08-14 03:18:32 +0000
committerthepish <thepish@FreeBSD.org>1998-08-14 03:18:32 +0000
commit4d38049ad4475304f4c0359f2ea2482283bf2f46 (patch)
tree91d3cec3ca60c8aee2afade713d3f743eaddbede /usr.bin/chpass/table.c
parent34dae5c76bd6cded637315239efb465b6632d17a (diff)
downloadFreeBSD-src-4d38049ad4475304f4c0359f2ea2482283bf2f46.zip
FreeBSD-src-4d38049ad4475304f4c0359f2ea2482283bf2f46.tar.gz
Submitted by: Peter Hawkins <thepish@FreeBSD.org>
Add functionality for support for more than 4 subfields within gcos. chsh, chpass etc did not parse beyond the 4th field previously and so truncated gcos on updating the database.
Diffstat (limited to 'usr.bin/chpass/table.c')
-rw-r--r--usr.bin/chpass/table.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/chpass/table.c b/usr.bin/chpass/table.c
index 3363e1d..eed097e 100644
--- a/usr.bin/chpass/table.c
+++ b/usr.bin/chpass/table.c
@@ -58,6 +58,7 @@ ENTRY list[] = {
{ "office phone", p_gecos, 0, 12, e2, },
{ "home phone", p_gecos, 0, 10, e2, },
{ "location", p_gecos, 0, 8, e2, },
+ { "other information", p_gecos, 0, 11, e1, },
{ "home directory", p_hdir, 1, 14, e1, },
{ "shell", p_shell, 0, 5, e1, },
{ NULL, 0, },
OpenPOWER on IntegriCloud