1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/databases/msql3/files/patch-ao
1998-08-30 15:57:34 +00:00

21 lines
669 B
Plaintext

--- src/msql/sort.c.orig Fri Aug 28 17:20:10 1998
+++ src/msql/sort.c Fri Aug 28 17:18:42 1998
@@ -280,7 +280,7 @@
/*
** Create the dummy output table
*/
- snprintf(dataPath,MAXPATHLEN,"%s/msqldb/.tmp/%s.tmp",INST_DIR,
+ snprintf(dataPath,MAXPATHLEN,"/var/db/msqldb/.tmp/%s.tmp",
entry->table);
tmp.dataFD = open(dataPath, O_CREAT|O_RDWR, 0600);
bzero(&sblock, sizeof(sblock));
@@ -328,7 +328,7 @@
/*
** Swap the new table into place
*/
- snprintf(oldPath,MAXPATHLEN,"%s/msqldb/.tmp/%s.dat",INST_DIR,
+ snprintf(oldPath,MAXPATHLEN,"/var/db/msqldb/.tmp/%s.dat",
entry->table);
munmap(entry->dataMap, entry->size);
close(entry->dataFD);