From: Günther Deschner Date: Mon, 16 Jun 2008 11:49:05 +0000 (+0200) Subject: net_vampire: use generic output filename and use correct argv element. X-Git-Tag: samba-4.0.0alpha6~801^2~1033 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=16eb846fa5c9ef0b15eade917e0fe6a9bb3d8624;p=thirdparty%2Fsamba.git net_vampire: use generic output filename and use correct argv element. Guenther (This used to be commit e0843e631e379645296a5fe34dfc83bc265ebef3) --- diff --git a/source3/libnet/libnet_samsync.h b/source3/libnet/libnet_samsync.h index 125312888e9..38ef9c56a5f 100644 --- a/source3/libnet/libnet_samsync.h +++ b/source3/libnet/libnet_samsync.h @@ -28,7 +28,7 @@ struct samsync_context { enum net_samsync_mode mode; const struct dom_sid *domain_sid; const char *domain_sid_str; - const char *ldif_filename; + const char *output_filename; void *private_data; }; diff --git a/source3/libnet/libnet_samsync_ldif.c b/source3/libnet/libnet_samsync_ldif.c index 448c7c153e5..86de2ab253f 100644 --- a/source3/libnet/libnet_samsync_ldif.c +++ b/source3/libnet/libnet_samsync_ldif.c @@ -1169,7 +1169,7 @@ NTSTATUS fetch_sam_entries_ldif(TALLOC_CTX *mem_ctx, status = ldif_init_context(mem_ctx, database_id, - ctx->ldif_filename, + ctx->output_filename, ctx->domain_sid_str, &ldif_ctx); if (!NT_STATUS_IS_OK(status)) { diff --git a/source3/utils/net_rpc_samsync.c b/source3/utils/net_rpc_samsync.c index a7c6c30e347..90637e294d4 100644 --- a/source3/utils/net_rpc_samsync.c +++ b/source3/utils/net_rpc_samsync.c @@ -1244,7 +1244,7 @@ NTSTATUS rpc_vampire_ldif_internals(struct net_context *c, } if (argc >= 1) { - ctx->ldif_filename = argv[1]; + ctx->output_filename = argv[0]; } /* fetch domain */