PR: ports/8276

Submitted by: Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
Samba's WINS database was cleaned during reboot.
This commit is contained in:
Tatsumi Hosokawa 1999-07-12 08:38:14 +00:00
parent d84c870683
commit ccf3fc7896
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=20170
3 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1,20 @@
--- nmbd/nmbd_winsserver.c.orig Fri Apr 2 05:00:46 1999
+++ nmbd/nmbd_winsserver.c Mon Jul 12 17:08:28 1999
@@ -152,7 +152,7 @@
start_async_dns();
#endif
- pstrcpy(fname,lp_lockdir());
+ pstrcpy(fname,"/var/db");
trim_string(fname,NULL,"/");
pstrcat(fname,"/");
pstrcat(fname,WINS_LIST);
@@ -1551,7 +1551,7 @@
}
}
- slprintf(fname,sizeof(fname),"%s/%s", lp_lockdir(), WINS_LIST);
+ slprintf(fname,sizeof(fname),"%s/%s", "/var/db", WINS_LIST);
string_sub(fname,"//", "/");
slprintf(fnamenew,sizeof(fnamenew),"%s.%u", fname, (unsigned int)getpid());

20
net/samba/files/patch-ag Normal file
View File

@ -0,0 +1,20 @@
--- nmbd/nmbd_winsserver.c.orig Fri Apr 2 05:00:46 1999
+++ nmbd/nmbd_winsserver.c Mon Jul 12 17:08:28 1999
@@ -152,7 +152,7 @@
start_async_dns();
#endif
- pstrcpy(fname,lp_lockdir());
+ pstrcpy(fname,"/var/db");
trim_string(fname,NULL,"/");
pstrcat(fname,"/");
pstrcat(fname,WINS_LIST);
@@ -1551,7 +1551,7 @@
}
}
- slprintf(fname,sizeof(fname),"%s/%s", lp_lockdir(), WINS_LIST);
+ slprintf(fname,sizeof(fname),"%s/%s", "/var/db", WINS_LIST);
string_sub(fname,"//", "/");
slprintf(fnamenew,sizeof(fnamenew),"%s.%u", fname, (unsigned int)getpid());

20
net/samba3/files/patch-ag Normal file
View File

@ -0,0 +1,20 @@
--- nmbd/nmbd_winsserver.c.orig Fri Apr 2 05:00:46 1999
+++ nmbd/nmbd_winsserver.c Mon Jul 12 17:08:28 1999
@@ -152,7 +152,7 @@
start_async_dns();
#endif
- pstrcpy(fname,lp_lockdir());
+ pstrcpy(fname,"/var/db");
trim_string(fname,NULL,"/");
pstrcat(fname,"/");
pstrcat(fname,WINS_LIST);
@@ -1551,7 +1551,7 @@
}
}
- slprintf(fname,sizeof(fname),"%s/%s", lp_lockdir(), WINS_LIST);
+ slprintf(fname,sizeof(fname),"%s/%s", "/var/db", WINS_LIST);
string_sub(fname,"//", "/");
slprintf(fnamenew,sizeof(fnamenew),"%s.%u", fname, (unsigned int)getpid());