]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Revert "Fix gp_find_file() which broke during the pstring removal."
authorMichael Adam <obnox@samba.org>
Thu, 8 May 2008 15:44:01 +0000 (17:44 +0200)
committerMichael Adam <obnox@samba.org>
Thu, 8 May 2008 15:44:01 +0000 (17:44 +0200)
This reverts commit f18ba6c877fa934d19ecc6a65be74b8bad7ee7e4.

source/libgpo/gpo_util.c

index f41bbc1817febfc1fc889091377a8caea34bb720..f2d7c6924a35a588b94669ac2616792ea6d922d6 100644 (file)
@@ -738,11 +738,8 @@ NTSTATUS gp_find_file(TALLOC_CTX *mem_ctx,
                return NT_STATUS_OK;
        }
 
-       path = talloc_strdup_upper(mem_ctx, path);
-       NT_STATUS_HAVE_NO_MEMORY(path);
-
-       tmp = talloc_asprintf(mem_ctx, "%s/%s/%s", filename,
-                             path, suffix);
+       tmp = talloc_asprintf_strupper_m(mem_ctx, "%s/%s/%s", filename, path,
+                                        suffix);
        NT_STATUS_HAVE_NO_MEMORY(tmp);
 
        if (sys_stat(tmp, &sbuf) == 0) {