The Samba-Bugzilla – Attachment 392 Details for
Bug 1055
net share: broken output if sharename length is less or more than 12 byte
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix this problem
p (text/plain), 1.88 KB, created by
SATOH Fumiyasu
on 2004-02-10 02:59:08 UTC
(
hide
)
Description:
Patch to fix this problem
Filename:
MIME Type:
Creator:
SATOH Fumiyasu
Created:
2004-02-10 02:59:08 UTC
Size:
1.88 KB
patch
obsolete
>Index: source/utils/net_rap.c >=================================================================== >RCS file: /work/cvs/samba/source/utils/net_rap.c,v >retrieving revision 1.1.1.1 >diff -u -p -r1.1.1.1 net_rap.c >--- source/utils/net_rap.c 23 Oct 2003 03:53:56 -0000 1.1.1.1 >+++ source/utils/net_rap.c 9 Feb 2004 10:43:42 -0000 >@@ -153,14 +153,14 @@ int net_rap_share_usage(int argc, const > static void long_share_fn(const char *share_name, uint32 type, > const char *comment, void *state) > { >- d_printf("%-12.12s %-8.8s %-50.50s\n", >+ d_printf("%-12s %-8.8s %-50s\n", > share_name, share_type[type], comment); > } > > static void share_fn(const char *share_name, uint32 type, > const char *comment, void *state) > { >- d_printf("%-12.12s\n", share_name); >+ d_printf("%s\n", share_name); > } > > static int rap_share_delete(int argc, const char **argv) >@@ -240,8 +240,9 @@ int net_rap_share(int argc, const char * > "\nShare name Type Description\n"\ > "---------- ---- -----------\n"); > ret = cli_RNetShareEnum(cli, long_share_fn, NULL); >+ } else { >+ ret = cli_RNetShareEnum(cli, share_fn, NULL); > } >- ret = cli_RNetShareEnum(cli, share_fn, NULL); > cli_shutdown(cli); > return ret; > } >Index: source/utils/net_rpc.c >=================================================================== >RCS file: /work/cvs/samba/source/utils/net_rpc.c,v >retrieving revision 1.1.1.2 >diff -u -p -r1.1.1.2 net_rpc.c >--- source/utils/net_rpc.c 16 Dec 2003 01:11:39 -0000 1.1.1.2 >+++ source/utils/net_rpc.c 9 Feb 2004 10:43:42 -0000 >@@ -1341,10 +1341,10 @@ static void display_share_info_1(SRV_SHA > rpcstr_pull_unistr2_fstring(remark, &info1->info_1_str.uni_remark); > > if (opt_long_list_entries) { >- d_printf("%-12.12s %-8.8s %-50.50s\n", >+ d_printf("%-12s %-8.8s %-50s\n", > netname, share_type[info1->info_1.type], remark); > } else { >- d_printf("%-12.12s\n", netname); >+ d_printf("%s\n", netname); > } > > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1055
: 392