1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

r4275: improve the share type info

(This used to be commit 750deb7f22)
This commit is contained in:
Andrew Tridgell 2004-12-19 04:23:29 +00:00 committed by Gerald (Jerry) Carter
parent 8fe7d2974c
commit f7b794c921

View File

@ -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;
}