Fix relative pathnames in nodelist index

This commit is contained in:
Alexander S. Aganichev 2003-01-18 15:53:55 +00:00
parent c0439363f6
commit 85c3983bbf
3 changed files with 6 additions and 3 deletions

View File

@ -12,9 +12,12 @@ ______________________________________________________________________
Notes for GoldED+ 1.1.5, /snapshot/
______________________________________________________________________
- Previous fix on relative pathnames was incorrect. Now GoldED+
changed to resolve problem. Seems to work properly now.
- Do not crash if problem to access MC clipboard (Linux specific).
- To fix problem with related pathname in NODEPATH the Goldnode will
- To fix problem with relative pathname in NODEPATH the Goldnode will
write only filename in .gxl file. Most users should not notice this
change at all.

View File

@ -1147,7 +1147,7 @@ void CheckNodelists() {
char* val=buf;
getkeyval(&key, &val);
key = strxcpy(NODE->nodelist[NODE->nodelists].fn, strbtrim(key), sizeof(Path));
MakePathname(key, CFG->nodepath, key);
//MakePathname(key, CFG->nodepath, key);
NODE->nodelist[NODE->nodelists].ft = atol(val);
NODE->nodelists++;
}

View File

@ -957,7 +957,7 @@ static void read_nodelists() {
if(not quiet) std::cout << ' ' << std::endl << "* Writing " << name << std::endl;
for(fno=nodelist.begin(); fno != nodelist.end(); fno++) {
if(*(fno->fn))
fprintf(fp, "%s %lu\n", CleanFilename(fno->fn), fno->ft);
fprintf(fp, "%s %lu\n", fno->fn, fno->ft);
}
fclose(fp);
}