char scanspace[1024];
char *av[128];
char buf[1024];
+ char *slash;
struct keymatch *kp;
int lno = 0;
int errors = 0;
return -1;
}
+ if ((slash = strrchr(file, '/')))
+ configdir = strndup(file, slash + 1 - file);
+ else
+ configdir = NULL;
+
while (fgets(buf, sizeof buf, fp) != NULL) {
++lno;
for (i = 0; buf[i] && isspace(buf[i]); ++i) ;