From f7b794c921fb1795fda886262d633040750a416f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 19 Dec 2004 04:23:29 +0000 Subject: r4275: improve the share type info (This used to be commit 750deb7f225b753f6c1547f7582f4edc4d817c58) --- source4/rpc_server/common/share_info.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source4') 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; } -- cgit