]> andersk Git - moira.git/commitdiff
Display user creation times.
authorzacheiss <zacheiss>
Wed, 17 Oct 2001 21:34:19 +0000 (21:34 +0000)
committerzacheiss <zacheiss>
Wed, 17 Oct 2001 21:34:19 +0000 (21:34 +0000)
clients/moira/user.c
clients/stanley/stanley.c

index a2d3c9a656edd469b16ea8b63950bf17b1e5e117..0e5c534a1ba12120b9bb39b374f75b4b23fac245 100644 (file)
@@ -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;
 }
 
index c59811353bc5d6e9ded4b07e530b36bf421aecc9..b96c6a540a75593b0b3b8935814ad7a4a5c007cc 100644 (file)
@@ -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]);
This page took 0.051067 seconds and 5 git commands to generate.