privileges: privilege luids are not all below 64
authorAndrew Tridgell <tridge@samba.org>
Thu, 2 Sep 2010 04:14:51 +0000 (14:14 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 11 Sep 2010 08:46:12 +0000 (18:46 +1000)
the ones brought across from s3 have higher values

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

libcli/security/privileges.c

index f5fa836472962a48bfc71925905e81661683d77c..4c288a7f3a49b3f28af6cff49a2c77aaa5103646 100644 (file)
@@ -346,9 +346,6 @@ const char *sec_privilege_name(enum sec_privilege privilege)
 const char *sec_privilege_display_name(enum sec_privilege privilege, uint16_t *language)
 {
        int i;
-       if (privilege < 1 || privilege > 64) {
-               return NULL;
-       }
        for (i=0;i<ARRAY_SIZE(privs);i++) {
                if (privs[i].luid == privilege) {
                        return privs[i].description;