Globally replace 'global_sam_sid' with get_global_sam_sid(), a self
[kai/samba.git] / source3 / printing / nt_printing.c
index 9b79eac3e09c1e12816df1409548fed90a107386..ecf873c1ba4cedde1fdbac601d0252eed3bc4738 100644 (file)
@@ -3683,7 +3683,6 @@ WERROR nt_printing_setsec(char *printername, SEC_DESC_BUF *secdesc_ctr)
 
 static SEC_DESC_BUF *construct_default_printer_sdb(TALLOC_CTX *ctx)
 {
-       extern DOM_SID global_sam_sid;
        SEC_ACE ace[3];
        SEC_ACCESS sa;
        SEC_ACL *psa = NULL;
@@ -3709,7 +3708,7 @@ static SEC_DESC_BUF *construct_default_printer_sdb(TALLOC_CTX *ctx)
                   This should emulate a lanman printer as security
                   settings can't be changed. */
 
-               sid_copy(&owner_sid, &global_sam_sid);
+               sid_copy(&owner_sid, get_global_sam_sid());
                sid_append_rid(&owner_sid, DOMAIN_USER_RID_ADMIN);
        }