summaryrefslogtreecommitdiff
path: root/source3/client/client.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2004-03-01 17:40:40 +0000
committerGerald Carter <jerry@samba.org>2004-03-01 17:40:40 +0000
commit659d6a2b6187cc9ee784ed7c45a5cdadbdfd788b (patch)
tree34297f5b16c2094708f5385d352d0cb790739136 /source3/client/client.c
parent1fe6e296374619b3e0e398f6eff3f704ac9cd021 (diff)
downloadsamba-659d6a2b6187cc9ee784ed7c45a5cdadbdfd788b.tar.gz
samba-659d6a2b6187cc9ee784ed7c45a5cdadbdfd788b.tar.bz2
samba-659d6a2b6187cc9ee784ed7c45a5cdadbdfd788b.zip
BUG 692: patch from SATOH Fumiyasu <fumiya@miraclelinux.com> to correct truncation of share names and workgroup names
(This used to be commit 822e31d841e720d48f4feeec673b75575caa8fac)
Diffstat (limited to 'source3/client/client.c')
-rw-r--r--source3/client/client.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index d4ad5fa1fe..547ebe8029 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -2003,7 +2003,7 @@ static void browse_fn(const char *name, uint32 m,
in any of these fields, they can corrupt the output. We
should remove them. */
if (!grepable) {
- d_printf("\t%-15.15s%-10.10s%s\n",
+ d_printf("\t%-15s %-10.10s%s\n",
name,typestr,comment);
} else {
d_printf ("%s|%s|%s\n",typestr,name,comment);
@@ -2018,8 +2018,8 @@ static BOOL browse_host(BOOL sort)
{
int ret;
if (!grepable) {
- d_printf("\n\tSharename Type Comment\n");
- d_printf("\t--------- ---- -------\n");
+ d_printf("\n\tSharename Type Comment\n");
+ d_printf("\t--------- ---- -------\n");
}
if((ret = cli_RNetShareEnum(cli, browse_fn, NULL)) == -1)
@@ -2037,7 +2037,7 @@ static void server_fn(const char *name, uint32 m,
{
if (!grepable){
- d_printf("\t%-16.16s %s\n", name, comment);
+ d_printf("\t%-16s %s\n", name, comment);
} else {
d_printf("%s|%s|%s\n",(char *)state, name, comment);
}