]> andersk Git - moira.git/commitdiff
added nickname field
authormar <mar>
Thu, 23 Feb 1989 16:01:39 +0000 (16:01 +0000)
committermar <mar>
Thu, 23 Feb 1989 16:01:39 +0000 (16:01 +0000)
gen/passwd.dc

index 52b8101af35aa5938083b74c01e7347136bcce18..9fcbce2cb5b0fa0afccbc5172a38e61f5ccffe96 100644 (file)
@@ -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)  {
This page took 0.050943 seconds and 5 git commands to generate.