summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-12-19 04:23:29 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:07:30 -0500
commitf7b794c921fb1795fda886262d633040750a416f (patch)
tree9653b4ea2a75102bac8d1fba5124e6e7e99a386d /source4
parent8fe7d2974ca1c5e73177560a5138f73ae42bb66a (diff)
downloadsamba-f7b794c921fb1795fda886262d633040750a416f.tar.gz
samba-f7b794c921fb1795fda886262d633040750a416f.tar.bz2
samba-f7b794c921fb1795fda886262d633040750a416f.zip
r4275: improve the share type info
(This used to be commit 750deb7f225b753f6c1547f7582f4edc4d817c58)
Diffstat (limited to 'source4')
-rw-r--r--source4/rpc_server/common/share_info.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/rpc_server/common/share_info.c b/source4/rpc_server/common/share_info.c
index eae11b0f40..18df4a6cf4 100644
--- a/source4/rpc_server/common/share_info.c
+++ b/source4/rpc_server/common/share_info.c
@@ -72,6 +72,12 @@ uint32_t dcesrv_common_get_share_type(TALLOC_CTX *mem_ctx, struct dcesrv_context
* ADMIN$, IPC$, C$, D$, E$ ... are type |= 0x80000000
* this ones are hidden in NetShareEnum, but shown in NetShareEnumAll
*/
+ if (strcasecmp(lp_servicename(snum), "IPC$") == 0) {
+ return 3;
+ }
+ if (lp_print_ok(snum)) {
+ return 1;
+ }
return 0;
}