From 3b69875d1ddec2e865e6be5a323e4931e18c78fb Mon Sep 17 00:00:00 2001 From: jweiss Date: Fri, 28 Oct 1994 17:18:15 +0000 Subject: [PATCH] register user should not default to "" it leaves too many chances to screw things up, by just hitting return. --- clients/moira/user.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/clients/moira/user.c b/clients/moira/user.c index ff24c176..da9514d9 100644 --- a/clients/moira/user.c +++ b/clients/moira/user.c @@ -630,11 +630,16 @@ RegisterUser() return(DM_NORMAL); } - if ( ((login = args[1] = GetLoginName()) == NULL) || + sprintf(temp_buf, "u%s", args[0]); + login = strsave(temp_buf); + if ( (GetValueFromUser("Login name for this user? ", &login) == SUB_ERROR) || ( GetFSTypes(&fstype, FALSE) == SUB_ERROR ) ) { + args[1] = login; FreeInfo(args); /* This work because the NULL temination is ok. */ return(DM_NORMAL); } + Put_message("KERBEROS code not added, did not reserve name with kerberos."); + args[1] = login; args[2] = fstype; args[3] = NULL; -- 2.45.1