summaryrefslogtreecommitdiffstats
path: root/chpass/table.c
diff options
context:
space:
mode:
authorPeter Hawkins <thepish@FreeBSD.org>1998-08-14 03:18:32 +0000
committerPeter Hawkins <thepish@FreeBSD.org>1998-08-14 03:18:32 +0000
commite182f7f220d9f391c6d67964e4c0ec4a158d6be3 (patch)
treebe99d0d63e11630e7820ece494f381d151d44120 /chpass/table.c
parent79722705d4a9a042b75ce7f3045746de143af1ba (diff)
downloadpw-darwin-e182f7f220d9f391c6d67964e4c0ec4a158d6be3.tar.gz
pw-darwin-e182f7f220d9f391c6d67964e4c0ec4a158d6be3.tar.zst
pw-darwin-e182f7f220d9f391c6d67964e4c0ec4a158d6be3.zip
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 'chpass/table.c')
-rw-r--r--chpass/table.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/chpass/table.c b/chpass/table.c
index 3363e1d..eed097e 100644
--- a/chpass/table.c
+++ b/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, },