From 6d78e11e17b80bc932e5f4fb1ff6b27909f405d0 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 30 Aug 2010 14:00:50 +1000 Subject: libcli/security make sec_privilege_id() return SEC_PRIV_INVALID on failure. Andrew Bartlett Signed-off-by: Andrew Tridgell --- libcli/security/privileges.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libcli') diff --git a/libcli/security/privileges.c b/libcli/security/privileges.c index 2b241c91aa..b15a4ecc1a 100644 --- a/libcli/security/privileges.c +++ b/libcli/security/privileges.c @@ -368,7 +368,7 @@ enum sec_privilege sec_privilege_id(const char *name) return privs[i].luid; } } - return -1; + return SEC_PRIV_INVALID; } /* -- cgit