Bug 1055 - net share: broken output if sharename length is less or more than 12 byte
Summary: net share: broken output if sharename length is less or more than 12 byte
Status: CLOSED FIXED
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: net utility (show other bugs)
Version: 3.0.2
Hardware: All All
: P3 normal
Target Milestone: none
Assignee: Jim McDonough
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-10 02:57 UTC by SATOH Fumiyasu
Modified: 2005-08-24 10:18 UTC (History)
1 user (show)

See Also:


Attachments
Patch to fix this problem (1.88 KB, patch)
2004-02-10 02:59 UTC, SATOH Fumiyasu
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description SATOH Fumiyasu 2004-02-10 02:57:55 UTC
Problem1:
---------
If server has share, e.g. named 'ABC', `net share -S server` prints 
the following output:

$ net share -S server -U% |grep ABC
ABC         
   ^^^^^^^^^ <- There are odd spaces here.

Problem2:
---------
If server has share, e.g. named 'ABCDEFGHIJKLMN',
`net share -S server` prints the following output:

$ net share -S server -U% |grep ABC
ABCDEFGHIJKL         
            ^ <- Sharename is truncated here.
Comment 1 SATOH Fumiyasu 2004-02-10 02:59:08 UTC
Created attachment 392 [details]
Patch to fix this problem
Comment 2 SATOH Fumiyasu 2004-02-10 03:03:32 UTC
Problem3:
---------
`net rap share --long -S server` prints share list both of the long
and short format.

$ net rap share --long -S server -U%

Enumerating shared resources (exports) on remote server:


Share name   Type     Description
----------   ----     -----------
public       Disk
support      Disk     Support Share
webtest      Disk     webtest
IPC$         IPC      IPC Service (Samba 2.2.7a-ja-1.1 on fs01)
ADMIN$       Disk     IPC Service (Samba 2.2.7a-ja-1.1 on fs01)
public
support
webtest
IPC$
ADMIN$
Comment 3 Gerald (Jerry) Carter (dead mail address) 2004-02-11 07:04:18 UTC
Thanks.  Patch checked in.
Comment 4 Gerald (Jerry) Carter (dead mail address) 2005-08-24 10:18:36 UTC
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.