From: Günther Deschner Date: Mon, 3 Mar 2008 08:43:10 +0000 (+0100) Subject: Fix gp_find_file() which broke during the pstring removal. X-Git-Tag: samba-3.3.0pre1~3436^2~40^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f18ba6c877fa934d19ecc6a65be74b8bad7ee7e4;p=thirdparty%2Fsamba.git Fix gp_find_file() which broke during the pstring removal. Guenther --- diff --git a/source/libgpo/gpo_util.c b/source/libgpo/gpo_util.c index f2d7c6924a3..f41bbc1817f 100644 --- a/source/libgpo/gpo_util.c +++ b/source/libgpo/gpo_util.c @@ -738,8 +738,11 @@ NTSTATUS gp_find_file(TALLOC_CTX *mem_ctx, return NT_STATUS_OK; } - tmp = talloc_asprintf_strupper_m(mem_ctx, "%s/%s/%s", filename, path, - suffix); + path = talloc_strdup_upper(mem_ctx, path); + NT_STATUS_HAVE_NO_MEMORY(path); + + tmp = talloc_asprintf(mem_ctx, "%s/%s/%s", filename, + path, suffix); NT_STATUS_HAVE_NO_MEMORY(tmp); if (sys_stat(tmp, &sbuf) == 0) {