1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

Ensure nmblookup correctly converts from CH_DOS to CH_UNIX when displaying

a printable name on node status.
Jeremy.
(This used to be commit 6585446afd)
This commit is contained in:
Jeremy Allison 2003-08-22 00:13:42 +00:00
parent a8eda05d75
commit e88593f1c0

View File

@ -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); status = node_status_query(fd,&nname,ip, &count);
if (status) { if (status) {
for (i=0;i<count;i++) { for (i=0;i<count;i++) {
fstrcpy(cleanname, status[i].name); pull_ascii_fstring(cleanname, status[i].name);
for (j=0;cleanname[j];j++) { for (j=0;cleanname[j];j++) {
if (!isprint((int)cleanname[j])) cleanname[j] = '.'; if (!isprint((int)cleanname[j])) cleanname[j] = '.';
} }