wins.dat manipulation
Dmitry Melekhov
dm at belkam.com
Tue Mar 23 11:58:47 GMT 2004
Hello!
I need to edit wins.dat without restarting nmbd, so I wrote very little
patch to smbcontrol which add two messages:
dump-wins Dump wins database
load-wins Load wins database
They are handled by
void nmbd_message_winsload(int msg_type, pid_t src, void *buf, size_t len)
{
initialise_wins();
}
void nmbd_message_winsdump(int msg_type, pid_t src, void *buf, size_t len)
{
wins_write_database(True);
}
Is this correct or I broke something?
More information about the samba-technical
mailing list