diff options
author | Günther Deschner <gd@samba.org> | 2008-06-13 22:33:46 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-06-13 23:39:09 +0200 |
commit | 2d23da2cff2ce9ef2aaaa051ada42905c883cbe5 (patch) | |
tree | 450fd3c46cd83db74590b8cd0fc88725ed4c6d2e /source3 | |
parent | fb0a11d1ec786d2fa9153fd8f25f2299604891e4 (diff) | |
download | samba-2d23da2cff2ce9ef2aaaa051ada42905c883cbe5.tar.gz samba-2d23da2cff2ce9ef2aaaa051ada42905c883cbe5.tar.bz2 samba-2d23da2cff2ce9ef2aaaa051ada42905c883cbe5.zip |
net_vampire: rename process_database to samsync_process_database.
Guenther
(This used to be commit cf382a87602a63368587ffa2c95b774f2f97c21b)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/utils/net_rpc_samsync.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/source3/utils/net_rpc_samsync.c b/source3/utils/net_rpc_samsync.c index af23b3c609..5343a0465b 100644 --- a/source3/utils/net_rpc_samsync.c +++ b/source3/utils/net_rpc_samsync.c @@ -424,10 +424,10 @@ typedef NTSTATUS (*samsync_fn_t)(TALLOC_CTX *, NTSTATUS, struct samsync_context *); -static NTSTATUS process_database(struct rpc_pipe_client *pipe_hnd, - enum netr_SamDatabaseID database_id, - samsync_fn_t callback_fn, - struct samsync_context *ctx) +static NTSTATUS samsync_process_database(struct rpc_pipe_client *pipe_hnd, + enum netr_SamDatabaseID database_id, + samsync_fn_t callback_fn, + struct samsync_context *ctx) { NTSTATUS result; TALLOC_CTX *mem_ctx; @@ -442,7 +442,7 @@ static NTSTATUS process_database(struct rpc_pipe_client *pipe_hnd, ZERO_STRUCT(return_authenticator); - if (!(mem_ctx = talloc_init("process_database"))) { + if (!(mem_ctx = talloc_init("samsync_process_database"))) { return NT_STATUS_NO_MEMORY; } @@ -525,14 +525,14 @@ NTSTATUS rpc_samdump_internals(struct net_context *c, return status; } - process_database(pipe_hnd, SAM_DATABASE_DOMAIN, - display_sam_entries, ctx); + samsync_process_database(pipe_hnd, SAM_DATABASE_DOMAIN, + display_sam_entries, ctx); - process_database(pipe_hnd, SAM_DATABASE_BUILTIN, - display_sam_entries, ctx); + samsync_process_database(pipe_hnd, SAM_DATABASE_BUILTIN, + display_sam_entries, ctx); - process_database(pipe_hnd, SAM_DATABASE_PRIVS, - display_sam_entries, ctx); + samsync_process_database(pipe_hnd, SAM_DATABASE_PRIVS, + display_sam_entries, ctx); TALLOC_FREE(ctx); @@ -2509,8 +2509,8 @@ NTSTATUS rpc_vampire_internals(struct net_context *c, } /* fetch domain */ - result = process_database(pipe_hnd, SAM_DATABASE_DOMAIN, - fetch_sam_entries, ctx); + result = samsync_process_database(pipe_hnd, SAM_DATABASE_DOMAIN, + fetch_sam_entries, ctx); if (!NT_STATUS_IS_OK(result)) { d_fprintf(stderr, "Failed to fetch domain database: %s\n", nt_errstr(result)); @@ -2523,8 +2523,8 @@ NTSTATUS rpc_vampire_internals(struct net_context *c, /* fetch builtin */ ctx->domain_sid = sid_dup_talloc(mem_ctx, &global_sid_Builtin); ctx->domain_sid_str = sid_string_talloc(mem_ctx, ctx->domain_sid); - result = process_database(pipe_hnd, SAM_DATABASE_BUILTIN, - fetch_sam_entries, ctx); + result = samsync_process_database(pipe_hnd, SAM_DATABASE_BUILTIN, + fetch_sam_entries, ctx); if (!NT_STATUS_IS_OK(result)) { d_fprintf(stderr, "Failed to fetch builtin database: %s\n", nt_errstr(result)); @@ -2562,8 +2562,8 @@ NTSTATUS rpc_vampire_ldif_internals(struct net_context *c, } /* fetch domain */ - status = process_database(pipe_hnd, SAM_DATABASE_DOMAIN, - fetch_sam_entries_ldif, ctx); + status = samsync_process_database(pipe_hnd, SAM_DATABASE_DOMAIN, + fetch_sam_entries_ldif, ctx); if (!NT_STATUS_IS_OK(status)) { d_fprintf(stderr, "Failed to fetch domain database: %s\n", nt_errstr(status)); @@ -2576,8 +2576,8 @@ NTSTATUS rpc_vampire_ldif_internals(struct net_context *c, /* fetch builtin */ ctx->domain_sid = sid_dup_talloc(mem_ctx, &global_sid_Builtin); ctx->domain_sid_str = sid_string_talloc(mem_ctx, ctx->domain_sid); - status = process_database(pipe_hnd, SAM_DATABASE_BUILTIN, - fetch_sam_entries_ldif, ctx); + status = samsync_process_database(pipe_hnd, SAM_DATABASE_BUILTIN, + fetch_sam_entries_ldif, ctx); if (!NT_STATUS_IS_OK(status)) { d_fprintf(stderr, "Failed to fetch builtin database: %s\n", nt_errstr(status)); |