1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s3: Use IS_DC macro in get_global_sam_name()

Much as I dislike macros, this one is there. So why not use it...
This commit is contained in:
Volker Lendecke 2010-04-10 22:52:06 +02:00
parent f73e480e19
commit 18078ec445

View File

@ -162,7 +162,7 @@ NT_USER_TOKEN *get_system_token(void)
const char *get_global_sam_name(void)
{
if ((lp_server_role() == ROLE_DOMAIN_PDC) || (lp_server_role() == ROLE_DOMAIN_BDC)) {
if (IS_DC) {
return lp_workgroup();
}
return global_myname();