summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Bokovoy <ab@samba.org>2007-05-14 19:26:22 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:22:04 -0500
commit1f073a0319b040b25a16046b9e1b37520109ecb8 (patch)
tree038096f265c4183b6787bb32a3d753c7c1169fba
parent1f7c3007b91e00662172dc6eda028f2e23ef7887 (diff)
downloadsamba-1f073a0319b040b25a16046b9e1b37520109ecb8.tar.gz
samba-1f073a0319b040b25a16046b9e1b37520109ecb8.tar.bz2
samba-1f073a0319b040b25a16046b9e1b37520109ecb8.zip
r22867: With Samba4's IDL, we now have two new flags for share types: STYPE_TEMPORARY and STYPE_HIDDEN
Strip them out when referencing share_type[] entries. Apparently, some Windows XP installs create shares set to STYPE_HIDDEN by default, found by Damir Shayhutdinov <damir@altlinux.org>. This also fixes smb4k crashes as it does call 'net share -l'. (This used to be commit c3f4fdd37e62491a11d3993864ba51fdb596ea1b)
-rw-r--r--source3/utils/net_rpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c
index b4a68b2058..e2639fe896 100644
--- a/source3/utils/net_rpc.c
+++ b/source3/utils/net_rpc.c
@@ -3118,7 +3118,7 @@ static void display_share_info_1(struct srvsvc_NetShareInfo1 *info1)
{
if (opt_long_list_entries) {
d_printf("%-12s %-8.8s %-50s\n",
- info1->name, share_type[info1->type],
+ info1->name, share_type[info1->type & ~(STYPE_TEMPORARY|STYPE_HIDDEN)],
info1->comment ? info1->comment : "");
} else {
d_printf("%s\n", info1->name);