Ripristinato programma archiviazione erroneamente segato!
git-svn-id: svn://10.65.10.50/trunk@1183 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
72147c7613
commit
6663d4fa54
@ -15,12 +15,12 @@ int main(int argc, char** argv)
|
||||
{
|
||||
case 0:
|
||||
rt = ba2100(argc, argv); break;
|
||||
#if XVT_OS == XVT_OS_SCOUNIX
|
||||
case 1:
|
||||
rt = ba2200(argc, argv); break;
|
||||
#endif
|
||||
#if XVT_OS == XVT_OS_SCOUNIX
|
||||
case 2:
|
||||
rt = ba2300(argc, argv) ; break;
|
||||
#endif
|
||||
case 3:
|
||||
rt = ba2400(argc, argv) ; break;
|
||||
default:
|
||||
|
@ -310,15 +310,22 @@ bool TArchive::restore(const char* dir, char floppy, bool tmp)
|
||||
"nel direttorio %s. Continuare?", floppy, (const char*)work))
|
||||
return FALSE;
|
||||
|
||||
const TString16 old(prefix().name());
|
||||
prefix().set(NULL);
|
||||
xvt_fsys_save_dir();
|
||||
bool ok = chdir(work) == 0;
|
||||
if (!ok)
|
||||
{
|
||||
prefix().set(old);
|
||||
return error_box("Impossibile accedere a %s", (const char*)work);
|
||||
ok = yesno_box("Non esiste il direttorio %s: si desidera crearlo?", (const char*)work);
|
||||
if (ok)
|
||||
{
|
||||
make_dir(work);
|
||||
ok = chdir(work) == 0;
|
||||
}
|
||||
if (!ok)
|
||||
return error_box("Impossibile accedere a %s", (const char*)work);
|
||||
}
|
||||
|
||||
const TString16 old(prefix().name());
|
||||
prefix().set(NULL);
|
||||
|
||||
ok = fbuild(output, floppy);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user