Rev 593: fixed use of talloc_asprintf_append in
http://samba.org/~tridge/3_0-ctdb
tridge at samba.org
tridge at samba.org
Sat Jun 16 17:44:41 GMT 2007
------------------------------------------------------------
revno: 593
revision-id: tridge at samba.org-20070616174439-c1fqcwt8v32vu47e
parent: tridge at samba.org-20070616153906-4nky8hi3amons61l
committer: Andrew Tridgell <tridge at samba.org>
branch nick: s3-ctdb-tridge
timestamp: Sun 2007-06-17 03:44:39 +1000
message:
fixed use of talloc_asprintf_append
modified:
source/modules/vfs_shadow_copy2.c vfs_shadow_copy2.c-20070616115727-8jw10u301cshsoqz-1
=== modified file 'source/modules/vfs_shadow_copy2.c'
--- a/source/modules/vfs_shadow_copy2.c 2007-06-16 15:39:06 +0000
+++ b/source/modules/vfs_shadow_copy2.c 2007-06-16 17:44:39 +0000
@@ -166,6 +166,7 @@
{
const char *snapdir;
char *mount_point;
+ const char *ret;
snapdir = lp_parm_const_string(SNUM(handle->conn), "shadow", "snapdir", NULL);
if (snapdir == NULL) {
@@ -182,7 +183,9 @@
return NULL;
}
- return talloc_asprintf_append(mount_point, "/%s", snapdir);
+ ret = talloc_asprintf(mem_ctx, "%s/%s", mount_point, snapdir);
+ talloc_free(mount_point);
+ return ret;
}
/*
More information about the samba-cvs
mailing list