More tweaks to how windows deals with directory paths.
This commit is contained in:
@@ -286,6 +286,10 @@ char *fqn_prefix[PREFIX_COUNT] = { (char *) 0, (char *) 0, (char *) 0,
|
||||
(char *) 0, (char *) 0, (char *) 0,
|
||||
(char *) 0, (char *) 0, (char *) 0,
|
||||
(char *) 0 };
|
||||
boolean fqn_prefix_locked[PREFIX_COUNT] = { FALSE, FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
FALSE };
|
||||
|
||||
#ifdef PREFIXES_IN_USE
|
||||
char *fqn_prefix_names[PREFIX_COUNT] = {
|
||||
|
||||
@@ -2158,6 +2158,8 @@ int prefixid;
|
||||
|
||||
if (!bufp)
|
||||
return;
|
||||
if (fqn_prefix_locked[prefixid])
|
||||
return;
|
||||
/* Backward compatibility, ignore trailing ;n */
|
||||
if ((ptr = index(bufp, ';')) != 0)
|
||||
*ptr = '\0';
|
||||
@@ -3196,7 +3198,7 @@ fopen_sym_file()
|
||||
{
|
||||
FILE *fp;
|
||||
|
||||
fp = fopen_datafile(SYMBOLS, "r", HACKPREFIX);
|
||||
fp = fopen_datafile(SYMBOLS, "r", CONFIGPREFIX);
|
||||
|
||||
return fp;
|
||||
}
|
||||
@@ -3861,6 +3863,9 @@ assure_syscf_file()
|
||||
{
|
||||
int fd;
|
||||
|
||||
/* We are checking that the sysconf exists ... lock the path */
|
||||
fqn_prefix_locked[SYSCONFPREFIX] = TRUE;
|
||||
|
||||
/*
|
||||
* All we really care about is the end result - can we read the file?
|
||||
* So just check that directly.
|
||||
|
||||
Reference in New Issue
Block a user