From cfeeecec9a7e8d8061ea45d44716c739edb10e16 Mon Sep 17 00:00:00 2001 From: zacheiss Date: Wed, 17 Oct 2001 21:34:19 +0000 Subject: [PATCH] Display user creation times. --- clients/moira/user.c | 3 +++ clients/stanley/stanley.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/clients/moira/user.c b/clients/moira/user.c index a2d3c9a6..0e5c534a 100644 --- a/clients/moira/user.c +++ b/clients/moira/user.c @@ -125,6 +125,8 @@ static void PrintUserInfo(char **info) } sprintf(buf, "Comments: %s", info[U_COMMENT]); Put_message(buf); + sprintf(buf, "Created by %s on %s.", info[U_CREATOR], info[U_CREATED]); + Put_message(buf); sprintf(buf, MOD_FORMAT, info[U_MODBY], info[U_MODTIME], info[U_MODWITH]); Put_message(buf); } @@ -151,6 +153,7 @@ static char **SetUserDefaults(char **info) info[U_SIGNATURE] = strdup(""); info[U_SECURE] = strdup("0"); info[U_MODTIME] = info[U_MODBY] = info[U_MODWITH] = info[U_END] = NULL; + info[U_CREATED] = info[U_CREATOR] = NULL; return info; } diff --git a/clients/stanley/stanley.c b/clients/stanley/stanley.c index c5981135..b96c6a54 100644 --- a/clients/stanley/stanley.c +++ b/clients/stanley/stanley.c @@ -632,6 +632,7 @@ void show_user_info(char **argv) atoi(argv[U_SECURE]) ? "needs" : "does not need"); } printf("Comments: %s\n", argv[U_COMMENT]); + printf("Created by %s on %s.\n", argv[U_CREATOR], argv[U_CREATED]); printf("Last mod by %s at %s with %s.\n", argv[U_MODBY], argv[U_MODTIME], argv[U_MODWITH]); } @@ -654,6 +655,8 @@ void show_user_info_unformatted(char **argv) printf("Secure: %s secure Account Coupon to register\n", atoi(argv[U_SECURE]) ? "Needs" : "Does not need"); printf("Comments: %s\n", argv[U_COMMENT]); + printf("Created by: %s\n", argv[U_CREATOR]); + printf("Created on: %s\n", argv[U_CREATED]); printf("Last mod by: %s\n", argv[U_MODBY]); printf("Last mod on: %s\n", argv[U_MODTIME]); printf("Last mod with: %s\n", argv[U_MODWITH]); -- 2.45.2