From 537c6b4e55a3b695ec16291d8f2a51f5c824b85b Mon Sep 17 00:00:00 2001 From: mar Date: Thu, 23 Feb 1989 16:01:39 +0000 Subject: [PATCH] added nickname field --- gen/passwd.dc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gen/passwd.dc b/gen/passwd.dc index 52b8101a..9fcbce2c 100644 --- a/gen/passwd.dc +++ b/gen/passwd.dc @@ -28,6 +28,7 @@ char **argv; char *outf, outft[64]; struct stat sb; ## char login[9], shell[33], fullname[33], oa[17], op[13], hp[17], *filetime; +## char nickname[17]; ## int uid, error, flag; int ingerr(); @@ -63,16 +64,18 @@ char **argv; ## range of u is users ## retrieve (login = u.#login, uid = u.#uid, shell = u.#shell, ## fullname = u.#fullname, oa = u.office_addr, +## nickname = u.#nickname, ## op = u.office_phone, hp = u.home_phone) ## where u.status = 1 { strtrim(login); strtrim(fullname); + strtrim(nickname); strtrim(oa); strtrim(op); strtrim(hp); strtrim(shell); - fprintf(out, "%s:*:%d:101:%s,%s,%s,%s:/mit/%s:%s\n", - login, uid, fullname, oa, op, hp, login, shell); + fprintf(out, "%s:*:%d:101:%s,%s,%s,%s,%s:/mit/%s:%s\n", + login, uid, fullname, nickname, oa, op, hp, login, shell); ## } ## inquire_equel(error = "errorno") if (error) { -- 2.45.2