mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
Ensure nmblookup correctly converts from CH_DOS to CH_UNIX when displaying
a printable name on node status. Jeremy.
This commit is contained in:
parent
94d0f888c9
commit
6585446afd
@ -109,7 +109,7 @@ static void do_node_status(int fd, const char *name, int type, struct in_addr ip
|
||||
status = node_status_query(fd,&nname,ip, &count);
|
||||
if (status) {
|
||||
for (i=0;i<count;i++) {
|
||||
fstrcpy(cleanname, status[i].name);
|
||||
pull_ascii_fstring(cleanname, status[i].name);
|
||||
for (j=0;cleanname[j];j++) {
|
||||
if (!isprint((int)cleanname[j])) cleanname[j] = '.';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user