[SCM] Samba Shared Repository - branch v3-2-test updated -
release-3-2-0pre2-2253-gd55d7ba
Volker Lendecke
vlendec at samba.org
Fri Apr 25 14:47:45 GMT 2008
The branch, v3-2-test has been updated
via d55d7baec701ff7ba471ddaaa22c7730db1f74e9 (commit)
from 75dfbeb290fb4b9fb479d0c56429767c1a577fe4 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test
- Log -----------------------------------------------------------------
commit d55d7baec701ff7ba471ddaaa22c7730db1f74e9
Author: Volker Lendecke <vl at samba.org>
Date: Fri Apr 25 16:48:00 2008 +0200
Revert "Make some fns static"
This reverts commit e04fc36f223d8d905a930c077a6cf6c48ee57af7.
-----------------------------------------------------------------------
Summary of changes:
source/winbindd/idmap_cache.c | 21 ++++++++++++++++-----
1 files changed, 16 insertions(+), 5 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/winbindd/idmap_cache.c b/source/winbindd/idmap_cache.c
index f7e1d4e..cf46196 100644
--- a/source/winbindd/idmap_cache.c
+++ b/source/winbindd/idmap_cache.c
@@ -70,8 +70,12 @@ struct idmap_cache_ctx *idmap_cache_init(TALLOC_CTX *memctx)
return cache;
}
-static NTSTATUS idmap_cache_build_sidkey(TALLOC_CTX *ctx, char **sidkey,
- const struct id_map *id)
+void idmap_cache_shutdown(struct idmap_cache_ctx *cache)
+{
+ talloc_free(cache);
+}
+
+NTSTATUS idmap_cache_build_sidkey(TALLOC_CTX *ctx, char **sidkey, const struct id_map *id)
{
fstring sidstr;
@@ -85,8 +89,7 @@ static NTSTATUS idmap_cache_build_sidkey(TALLOC_CTX *ctx, char **sidkey,
return NT_STATUS_OK;
}
-static NTSTATUS idmap_cache_build_idkey(TALLOC_CTX *ctx, char **idkey,
- const struct id_map *id)
+NTSTATUS idmap_cache_build_idkey(TALLOC_CTX *ctx, char **idkey, const struct id_map *id)
{
*idkey = talloc_asprintf(ctx, "IDMAP/%s/%lu",
(id->xid.type==ID_TYPE_UID)?"UID":"GID",
@@ -253,7 +256,7 @@ done:
return ret;
}
-static NTSTATUS idmap_cache_fill_map(struct id_map *id, const char *value)
+NTSTATUS idmap_cache_fill_map(struct id_map *id, const char *value)
{
char *rem;
@@ -301,6 +304,14 @@ failed:
return NT_STATUS_INTERNAL_DB_CORRUPTION;
}
+bool idmap_cache_is_negative(const char *val)
+{
+ if ( ! strcmp("IDMAP/NEGATIVE", val)) {
+ return True;
+ }
+ return False;
+}
+
/* search the cahce for the SID an return a mapping if found *
*
* 4 cases are possible
--
Samba Shared Repository
More information about the samba-cvs
mailing list