diff options
author | Volker Lendecke <vl@samba.org> | 2010-04-10 22:52:06 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-04-10 22:55:06 +0200 |
commit | 18078ec4450a7ee37b613020886ec6bead7a6ead (patch) | |
tree | ccaabbe419c153f26abd8bd388c03ac9be6b617d /source3 | |
parent | f73e480e1917712bfb6c9641f9a49c454a1e4a5f (diff) | |
download | samba-18078ec4450a7ee37b613020886ec6bead7a6ead.tar.gz samba-18078ec4450a7ee37b613020886ec6bead7a6ead.tar.bz2 samba-18078ec4450a7ee37b613020886ec6bead7a6ead.zip |
s3: Use IS_DC macro in get_global_sam_name()
Much as I dislike macros, this one is there. So why not use it...
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/util_sid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/util_sid.c b/source3/lib/util_sid.c index 7d5dc1b3a9..c6c79a2e66 100644 --- a/source3/lib/util_sid.c +++ b/source3/lib/util_sid.c @@ -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(); |