+Thu Sep 15 16:49:19 1994 Theodore Y. Ts'o (tytso@dcl)
+
+ * kadm_add.c (kadm_add_user): Don't chop off last character of
+ principal if it was supplied by the caller (instead of
+ prompting the user to enter a principal).
+
Wed Sep 14 22:20:46 1994 Theodore Y. Ts'o (tytso@dcl)
* kadmin_add.c (kadm_add_user): removed a duplicated
fprintf(stderr, "Invalid Principal name!\n");
count++;
} while (username[0] == '\n' && count < 3);
- }
- if (username[0] == '\n') {
- fprintf(stderr, "Aborting!!\n\n");
- return(1);
- }
+ if (username[0] == '\n') {
+ fprintf(stderr, "Aborting!!\n\n");
+ return(1);
+ }
- username[strlen(username) -1] = '\0';
+ username[strlen(username) -1] = '\0';
+ }
(void) memcpy( inbuf.data + 3, username, strlen(username));
inbuf.length = strlen(username) + 3;