From e997cf9fe2a1ed8546d841acd6f4b3a9ab3676d4 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 13 Jul 2007 23:34:42 +0000 Subject: r23872: Dump all GPFLAGS in dump_gpo(). Guenther (This used to be commit 4b5c4b4fffbd62917894432c9bb6946f181668c4) --- source3/libgpo/gpo_util.c | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/source3/libgpo/gpo_util.c b/source3/libgpo/gpo_util.c index 23b9cf332a..338fa9cda3 100644 --- a/source3/libgpo/gpo_util.c +++ b/source3/libgpo/gpo_util.c @@ -211,13 +211,23 @@ void dump_gpo(TALLOC_CTX *mem_ctx, struct GROUP_POLICY_OBJECT *gpo, int debuglev DEBUGADD(lvl,("dspath:\t\t%s\n", gpo->ds_path)); DEBUGADD(lvl,("options:\t\t%d ", gpo->options)); - if (gpo->options & GPFLAGS_USER_SETTINGS_DISABLED) { - DEBUGADD(lvl,("GPFLAGS_USER_SETTINGS_DISABLED ")); - } - if (gpo->options & GPFLAGS_MACHINE_SETTINGS_DISABLED) { - DEBUGADD(lvl,("GPFLAGS_MACHINE_SETTINGS_DISABLED")); + switch (gpo->options) { + case GPFLAGS_ALL_ENABLED: + DEBUGADD(lvl,("GPFLAGS_ALL_ENABLED\n")); + break; + case GPFLAGS_USER_SETTINGS_DISABLED: + DEBUGADD(lvl,("GPFLAGS_USER_SETTINGS_DISABLED\n")); + break; + case GPFLAGS_MACHINE_SETTINGS_DISABLED: + DEBUGADD(lvl,("GPFLAGS_MACHINE_SETTINGS_DISABLED\n")); + break; + case GPFLAGS_ALL_DISABLED: + DEBUGADD(lvl,("GPFLAGS_ALL_DISABLED\n")); + break; + default: + DEBUGADD(lvl,("unknown option: %d\n", gpo->options)); + break; } - DEBUGADD(lvl,("\n")); DEBUGADD(lvl,("link:\t\t\t%s\n", gpo->link)); DEBUGADD(lvl,("link_type:\t\t%d ", gpo->link_type)); -- cgit