Displaying 3 results from an estimated 3 matches for "namerec".
Did you mean:
namerc
2003 Sep 29
0
wins hook functionality broken in Samba 3.0.0
...03 04:57:20 -0000 1.51.2.14
@@ -107,7 +107,7 @@
{
pstring command;
char *cmd = lp_wins_hook();
- char *p;
+ char *p, *namestr;
int i;
if (!cmd || !*cmd) return;
@@ -119,11 +119,17 @@
}
}
+ /* Use the name without the nametype (and scope) appended */
+
+ namestr = nmb_namestr(&namerec->name);
+ if ((p = strchr(namestr, '<')))
+ *p = 0;
+
p = command;
p += slprintf(p, sizeof(command)-1, "%s %s %s %02x %d",
cmd,
operation,
- nmb_namestr(&namerec->name),
+ namestr,
namerec->name.name_type,
tt...
2003 Dec 01
0
No subject
...rec, question_name, 0);
+ (*(query_name_fail_function)rrec->fail_fn)(subrec, rrec,
question_name, 0);
}
remove_response_record(subrec, rrec);
@@ -242,7 +242,7 @@
/* Call the success function directly. */
if(success_fn)
- (*success_fn)(subrec, userdata, &nmbname, namerec->data.ip[0],
&rrec);
+ (*(query_name_success_function)success_fn)(subrec, userdata,
&nmbname, namerec->data.ip[0], &rrec);
return False;
}
diff -ru samba-2.2.1a/source/nmbd/nmbd_nameregister.c
samba-2.2.1a-qnx/source/nmbd/nmbd_nameregister.c
--- samba-2.2.1a/source/nm...
2003 Dec 01
0
No subject
...blem is: when using following options in smb.conf
character set = KOI8-r
client codepage = 866
WINS server recodes netbios names *TWICE*, resulting serious problems -
it cant be resolved.
The problem hides in nmbd/namelist_db.c
struct name_record *add_name_to_subnet (...) {
....
// namerec->name is a netbios name, already recoded (somewhere else)
// to our own representation, in my case, its cp866
make_nmb_name(&namerec->name, name, type);
....
}
// here is what we do later
void make_nmb_name( struct nmb_name *n, const char *name, int type)
{
extern pstring global...