[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-unstable-1184-g2ea57a7

Günther Deschner gd at samba.org
Tue Jan 8 11:29:04 GMT 2008


The branch, v3-2-test has been updated
       via  2ea57a76a6bc8f9c835818780fcc9324896d5c1f (commit)
      from  3c997ae0002d4c50e8899600c17ddf74ac61f6f0 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -----------------------------------------------------------------
commit 2ea57a76a6bc8f9c835818780fcc9324896d5c1f
Author: Günther Deschner <gd at samba.org>
Date:   Tue Jan 8 12:25:47 2008 +0100

    Correctly talloc ctx->remote_path in libgpo (thanks Michael for the pointer).
    
    Guenther

-----------------------------------------------------------------------

Summary of changes:
 source/libgpo/gpo_filesync.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/libgpo/gpo_filesync.c b/source/libgpo/gpo_filesync.c
index 9f6557e..03d5286 100644
--- a/source/libgpo/gpo_filesync.c
+++ b/source/libgpo/gpo_filesync.c
@@ -166,7 +166,7 @@ static void gpo_sync_func(const char *mnt,
 		}
 
 		old_nt_dir = ctx->remote_path;
-		ctx->remote_path = nt_dir;
+		ctx->remote_path = talloc_strdup(ctx->mem_ctx, nt_dir);
 
 		old_unix_dir = ctx->local_path;
 		ctx->local_path = talloc_strdup(ctx->mem_ctx, unix_dir);
@@ -174,7 +174,7 @@ static void gpo_sync_func(const char *mnt,
 		ctx->mask = talloc_asprintf(ctx->mem_ctx,
 					"%s\\*",
 					nt_dir);
-		if (!ctx->local_path || !ctx->mask) {
+		if (!ctx->local_path || !ctx->mask || !ctx->remote_path) {
 			DEBUG(0,("gpo_sync_func: ENOMEM\n"));
 			return;
 		}


-- 
Samba Shared Repository


More information about the samba-cvs mailing list