From 7579abc40468f8cd5b1ec5e5f0851367a8e5ab57 Mon Sep 17 00:00:00 2001 From: luca Date: Mon, 15 Jun 2009 09:48:20 +0000 Subject: [PATCH] Patch level :10.0 342 Files correlati : Ricompilazione Demo : [ ] Commento : 0001367: installazione patch su postazione client Descrizione l'installazione su client di rete produce l'errore allegato, la procedura si blocca. Per poter proseguire ho copiato manualmente gli eseguibili dal server. git-svn-id: svn://10.65.10.50/trunk@19023 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- ba/ba1700.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/ba/ba1700.cpp b/ba/ba1700.cpp index 7938f2b26..9a07a5e37 100755 --- a/ba/ba1700.cpp +++ b/ba/ba1700.cpp @@ -747,12 +747,13 @@ bool TInstaller_mask::is_zip_file(const TFilename& n) const bool TInstaller_mask::copy_file(const TFilename& src, const TFilename& dst) const { - bool ok = xvt_fsys_mkdir(dst.path()) != FALSE; - if (ok) - ok = ::fcopy(src, dst); - else - error_box(FR("Impossibile creare la cartella %s"), dst.path()); - return ok; + // Crea la cartella di destinazione se necessario + const char* dstdir = dst.path(); + if (*dstdir && !xvt_fsys_mkdir(dstdir)) + return error_box(FR("Impossibile creare la cartella %s"), dst.path()); + + // Copia veramente il file + return ::fcopy(src, dst); } // sposta il file dal direttorio temporaneo a quello passato come destinazione