diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-12-19 04:23:29 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:07:30 -0500 |
commit | f7b794c921fb1795fda886262d633040750a416f (patch) | |
tree | 9653b4ea2a75102bac8d1fba5124e6e7e99a386d /source4/rpc_server/common/share_info.c | |
parent | 8fe7d2974ca1c5e73177560a5138f73ae42bb66a (diff) | |
download | samba-f7b794c921fb1795fda886262d633040750a416f.tar.gz samba-f7b794c921fb1795fda886262d633040750a416f.tar.xz samba-f7b794c921fb1795fda886262d633040750a416f.zip |
r4275: improve the share type info
(This used to be commit 750deb7f225b753f6c1547f7582f4edc4d817c58)
Diffstat (limited to 'source4/rpc_server/common/share_info.c')
-rw-r--r-- | source4/rpc_server/common/share_info.c | 6 |
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 eae11b0f408..18df4a6cf4e 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; } |