+Thu May 11 12:18:27 EDT 1995 Paul Park (pjpark@mit.edu)
+ * kadmin5.c - Change "programname" to be the last component of
+ argv[0]. Also correctly terminate generated
+ argument string in kadmin_startup.
+
+
Tue May 9 15:56:40 EDT 1995 Paul Park (pjpark@mit.edu)
First checkin of new administrative client.
extern int optind;
char *action = (char *) NULL;
- programname = argv[0];
+ programname = strrchr(argv[0], (int) '/');
+ programname = (programname) ? programname++ : argv[0];
while ((option = getopt(argc, argv, "r:p:mt:")) != EOF) {
switch (option) {
case 'r':
strcat(action, argv[i]);
strcat(action, " ");
}
+ action[n2alloc-1] = '\0';
}
}
return(action);