diff options
author | Günther Deschner <gd@samba.org> | 2008-03-03 09:43:10 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-03-03 09:44:36 +0100 |
commit | 2418916460daf264179f07c5432c375ab91c0ea8 (patch) | |
tree | 2e3efb4e6af7a4413730e916c757f2aa3a1248e6 /source3/libgpo | |
parent | e447bf2edb3f996e259e62baf659d74279a6a715 (diff) | |
download | samba-2418916460daf264179f07c5432c375ab91c0ea8.tar.gz samba-2418916460daf264179f07c5432c375ab91c0ea8.tar.bz2 samba-2418916460daf264179f07c5432c375ab91c0ea8.zip |
Fix gp_find_file() which broke during the pstring removal.
Guenther
(This used to be commit f18ba6c877fa934d19ecc6a65be74b8bad7ee7e4)
Diffstat (limited to 'source3/libgpo')
-rw-r--r-- | source3/libgpo/gpo_util.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/libgpo/gpo_util.c b/source3/libgpo/gpo_util.c index f2d7c6924a..f41bbc1817 100644 --- a/source3/libgpo/gpo_util.c +++ b/source3/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) { |