X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fali.c;h=73f716685b6f68002a1c68dff8f35922c4deb15d;hp=e07c847b0a990b656777db5b84231bec54855d85;hb=32b2354dbaf4bf934936eb5b102a4a3d2fdd209a;hpb=5b792c4424571f05bc2008e3109797d18d7d00d1 diff --git a/uip/ali.c b/uip/ali.c index e07c847..73f7166 100644 --- a/uip/ali.c +++ b/uip/ali.c @@ -9,7 +9,6 @@ #include #include #include -#include #include /* @@ -35,7 +34,7 @@ static struct swit switches[] = { #define NUSERSW 7 { "nouser", 0 }, #define VERSIONSW 8 - { "version", 0 }, + { "Version", 0 }, #define HELPSW 9 { "help", 0 }, { NULL, 0 } @@ -69,7 +68,6 @@ main(int argc, char **argv) /* read user profile/context */ context_read(); - mts_init(invo_name); arguments = getarguments(invo_name, argc, argv, 1); argp = arguments; @@ -132,7 +130,7 @@ main(int argc, char **argv) char *dp = NULL; for (ap = brkstring(dp = getcpy(cp), " ", "\n"); ap && *ap; ap++) - if ((i = alias(*ap)) != AK_OK) + if ((i = alias(etcpath(*ap))) != AK_OK) adios(NULL, "aliasing error in %s - %s", *ap, akerror(i)); if (dp) free(dp); @@ -244,12 +242,7 @@ print_usr(char *s, int list, int norm) } mnfree(mp); -#if 0 - printf("%s: ", s); - print_aka(vp ? vp : s, list, pos += strlen(s) + 1); -#else print_aka(vp ? vp : s, list, 0); -#endif if (vp) free(vp);