Fixed path lookup for alias files: ali, send, whatnow.
[mmh] / uip / aliasbr.c
index 85260d8..b9b32fa 100644 (file)
@@ -125,6 +125,9 @@ aleq(char *string, char *aliasent)
 }
 
 
+/*
+** file needs to be absolute or relative to cwd
+*/
 int
 alias(char *file)
 {
@@ -134,9 +137,6 @@ alias(char *file)
        register struct aka *ak = NULL;
        register FILE *fp;
 
-       if (*file!='/' && (strncmp(file, "./", 2)!=0 &&
-                       strncmp(file, "../", 3)!=0))
-               file = etcpath(file);
        if ((fp = fopen(file, "r")) == NULL) {
                akerrst = file;
                return AK_NOFILE;