diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-07-25 04:09:44 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-07-25 04:09:44 +0000 |
commit | e3bbe5d5915d6947ce85c4473b2eebb2ba321fea (patch) | |
tree | ca940e91842698fd1decf3064e2600935cfa3868 | |
parent | a9126e5c1caa169cab0133415f668de5d93655e3 (diff) | |
download | samba-e3bbe5d5915d6947ce85c4473b2eebb2ba321fea.tar.gz samba-e3bbe5d5915d6947ce85c4473b2eebb2ba321fea.tar.xz samba-e3bbe5d5915d6947ce85c4473b2eebb2ba321fea.zip |
nicer smbtree output
(This used to be commit b840d7d65e0e8e437e016318d7ee702db2fa561b)
-rw-r--r-- | source3/utils/smbtree.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/utils/smbtree.c b/source3/utils/smbtree.c index 26db717668..f3d3d2ae31 100644 --- a/source3/utils/smbtree.c +++ b/source3/utils/smbtree.c @@ -293,7 +293,8 @@ static BOOL print_tree(struct user_auth_info *user_info) for (sv = servers; sv; sv = sv->next) { - printf("\t%s\n", sv->name); + printf("\t\\\\%-15s\t\t%s\n", + sv->name, sv->comment); /* List shares */ @@ -305,7 +306,8 @@ static BOOL print_tree(struct user_auth_info *user_info) continue; for (sh = shares; sh; sh = sh->next) { - printf("\t\t%s\n", sh->name); + printf("\t\t\\\\%s\\%-15s\t%s\n", + sv->name, sh->name, sh->comment); } } } |