mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-05 22:43:24 +00:00
1a84e7d783
Upgrade to v2.0 release PR: ports/4072
66 lines
1.8 KiB
Plaintext
66 lines
1.8 KiB
Plaintext
--- src/msql/table.c Fri Feb 7 10:06:42 1997
|
|
+++ src/msql/table.c Fri Feb 7 10:16:35 1997
|
|
@@ -100,7 +100,7 @@
|
|
{
|
|
char path[MAXPATHLEN];
|
|
|
|
- (void)sprintf(path,"%s/msqldb/%s/%s.dat",msqlHomeDir,db,table);
|
|
+ (void)sprintf(path,"/var/db/msqldb/%s/%s.dat",db,table);
|
|
#ifdef OS2
|
|
return(_sopen(path,O_RDWR | O_BINARY, SH_DENYNO, S_IREAD | S_IWRITE));
|
|
#else
|
|
@@ -115,7 +115,7 @@
|
|
{
|
|
char path[MAXPATHLEN];
|
|
|
|
- (void)sprintf(path,"%s/msqldb/%s/%s.ofl",msqlHomeDir,db,table);
|
|
+ (void)sprintf(path,"/var/db/msqldb/%s/%s.ofl",db,table);
|
|
#ifdef OS2
|
|
return(_sopen(path,O_RDWR | O_BINARY, SH_DENYNO, S_IREAD | S_IWRITE));
|
|
#else
|
|
@@ -300,7 +300,7 @@
|
|
static char buf[MAX_FIELDS * sizeof(field_t)];
|
|
|
|
msqlTrace(TRACE_IN,"readTableDef()");
|
|
- (void)sprintf(path,"%s/msqldb/%s/%s.def",msqlHomeDir,db,table);
|
|
+ (void)sprintf(path,"/var/db/msqldb/%s/%s.def",db,table);
|
|
#ifdef OS2
|
|
fd = _sopen(path, O_RDONLY | O_BINARY, SH_DENYNO, S_IREAD | S_IWRITE);
|
|
#else
|
|
@@ -367,7 +367,7 @@
|
|
DIR *dirp;
|
|
char path[MAXPATHLEN];
|
|
|
|
- (void)sprintf(path,"%s/msqldb/.tmp",msqlHomeDir);
|
|
+ (void)sprintf(path,"/var/db/msqldb/.tmp");
|
|
dirp = opendir(path);
|
|
if (!dirp)
|
|
{
|
|
@@ -387,7 +387,7 @@
|
|
cur = readdir(dirp);
|
|
continue;
|
|
}
|
|
- (void)sprintf(path,"%s/msqldb/.tmp/%s",msqlHomeDir,
|
|
+ (void)sprintf(path,"/var/db/msqldb/.tmp/%s",
|
|
cur->d_name);
|
|
unlink(path);
|
|
cur = readdir(dirp);
|
|
@@ -434,7 +434,7 @@
|
|
{
|
|
tmpfile = cp+1;
|
|
}
|
|
- (void)sprintf(path,"%s/msqldb/.tmp/%s.dat",msqlHomeDir,tmpfile);
|
|
+ (void)sprintf(path,"/var/db/msqldb/.tmp/%s.dat",tmpfile);
|
|
|
|
|
|
/*
|
|
@@ -642,7 +642,7 @@
|
|
char path[MAXPATHLEN];
|
|
|
|
msqlTrace(TRACE_IN,"freeTmpTable()");
|
|
- (void)sprintf(path,"%s/msqldb/.tmp/%s.dat",msqlHomeDir,entry->table);
|
|
+ (void)sprintf(path,"/var/db/msqldb/.tmp/%s.dat",entry->table);
|
|
freeTableDef(entry->def);
|
|
entry->def = NULL;
|
|
*(entry->db) = 0;
|