s4/dsdb-util: Use DS_NTDSDSA_OPT_IS_GC flag definition
authorKamen Mazdrashki <kamenim@samba.org>
Tue, 22 Feb 2011 15:06:15 +0000 (17:06 +0200)
committerKamen Mazdrashki <kamenim@samba.org>
Sat, 26 Feb 2011 23:10:44 +0000 (00:10 +0100)
Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Sun Feb 27 00:10:45 CET 2011 on sn-devel-104

source4/dsdb/common/util.c

index e711a324f8a3cd1d5102e7b6b29ec5d900c07e76..67328c65c49cf67b182c473efdf6a8340dbe2564 100644 (file)
@@ -1910,7 +1910,7 @@ bool samdb_is_gc(struct ldb_context *ldb)
        talloc_free(tmp_ctx);
 
        /* if options attribute has the 0x00000001 flag set, then enable the global catlog */
-       if (options & 0x000000001) {
+       if (options & DS_NTDSDSA_OPT_IS_GC) {
                return true;
        }
        return false;