git.samba.org
/
obnox
/
samba
/
samba-obnox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libcli/security Make sec_privilege_from_index() return SEC_PRIV_INVALID on failure
[obnox/samba/samba-obnox.git]
/
libcli
/
security
/
privileges.c
diff --git
a/libcli/security/privileges.c
b/libcli/security/privileges.c
index 5c33f04693c076688c7309524d39b9fed84e1d47..f5fa836472962a48bfc71925905e81661683d77c 100644
(file)
--- a/
libcli/security/privileges.c
+++ b/
libcli/security/privileges.c
@@
-379,7
+379,7
@@
enum sec_privilege sec_privilege_from_index(int idx)
if (idx >= 0 && idx<ARRAY_SIZE(privs)) {
return privs[idx].luid;
}
- return
-1
;
+ return
SEC_PRIV_INVALID
;
}
/*