Date: Sun, 29 Nov 1998 03:20:02 -0800 (PST) From: Andre Albsmeier <andre.albsmeier@mchp.siemens.de> To: freebsd-ports@FreeBSD.ORG Subject: Re: ports/8276: samba's WINS database gets removed during system startup Message-ID: <199811291120.DAA23523@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/8276; it has been noted by GNATS. From: Andre Albsmeier <andre.albsmeier@mchp.siemens.de> To: freebsd-gnats-submit@freebsd.org Cc: Subject: Re: ports/8276: samba's WINS database gets removed during system startup Date: Sun, 29 Nov 1998 12:12:09 +0100 Here is a small patch which moves wins.dat and browse.dat to /var/db. It's running nice for about 6 weeks now. *** nmbd_winsserver.c.ORI Tue Oct 13 07:46:23 1998 --- nmbd_winsserver.c Tue Oct 13 07:54:59 1998 *************** *** 134,139 **** --- 134,140 ---- pstrcpy(fname,lp_lockdir()); trim_string(fname,NULL,"/"); pstrcat(fname,"/"); + pstrcpy( fname, "/var/db/" ); pstrcat(fname,WINS_LIST); if((fp = fopen(fname,"r")) == NULL) *************** *** 1542,1547 **** --- 1543,1549 ---- fstrcpy(fname,lp_lockdir()); trim_string(fname,NULL,"/"); pstrcat(fname,"/"); + pstrcpy( fname, "/var/db/" ); pstrcat(fname,WINS_LIST); pstrcpy(fnamenew,fname); pstrcat(fnamenew,"."); --- ipc.c.ORI Sun Nov 29 11:41:32 1998 +++ ipc.c Sun Nov 29 11:42:00 1998 @@ -944,6 +944,7 @@ pstrcpy(fname,lp_lockdir()); trim_string(fname,NULL,"/"); pstrcat(fname,"/"); + pstrcpy( fname, "/var/db/" ); pstrcat(fname,SERVER_LIST); f = fopen(fname,"r"); *** nmbd_serverlistdb.c.ORI Sun Nov 29 11:39:44 1998 --- nmbd_serverlistdb.c Sun Nov 29 11:42:53 1998 *************** *** 340,345 **** --- 340,346 ---- pstrcpy(fname,lp_lockdir()); trim_string(fname,NULL,"/"); pstrcat(fname,"/"); + pstrcpy( fname, "/var/db/" ); pstrcat(fname,SERVER_LIST); pstrcpy(fnamenew,fname); pstrcat(fnamenew,"."); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811291120.DAA23523>