This commit was generated by cvs2svn to compensate for changes in r154178,

which included commits to RCS files with non-trunk default branches.
This commit is contained in:
Hartmut Brandt 2006-01-10 11:47:56 +00:00
commit 2bc6540439
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=154179

View File

@ -206,17 +206,18 @@ input_open_file(const char *fname, int sysdir)
struct input *input;
FILE *fp;
char path[PATH_MAX + 1];
char *col;
const char *col;
const char *ptr;
if (sysdir) {
ptr = syspath;
fp = NULL;
while (*ptr != '\0') {
if ((col = strchr(ptr, ':')) == NULL)
if ((col = strchr(ptr, ':')) == NULL) {
snprintf(path, sizeof(path), "%s/%s",
ptr, fname);
else if (col == ptr)
col = ptr + strlen(ptr) - 1;
} else if (col == ptr)
snprintf(path, sizeof(path), "./%s", fname);
else
snprintf(path, sizeof(path), "%.*s/%s",