Imported Upstream version 0.72.3

This commit is contained in:
TANIGUCHI Takaki
2012-03-06 11:08:15 +09:00
parent 205701b3de
commit 30255c97b3
713 changed files with 13953 additions and 28840 deletions

14
file.c
View File

@@ -1,5 +1,5 @@
/* dvdisaster: Additional error correction for optical media.
* Copyright (C) 2004-2010 Carsten Gnoerlich.
* Copyright (C) 2004-2011 Carsten Gnoerlich.
* Project home page: http://www.dvdisaster.com
* Email: carsten@dvdisaster.com -or- cgnoerlich@fsfe.org
*
@@ -44,21 +44,23 @@ ImageInfo* OpenImageFile(EccHeader *eh, int mode)
return NULL;
}
PrintLog(_(": not present.\n"));
PrintLog(": %s.\n", strerror(errno));
g_free(ii);
Stop(_("Image file %s not present."),Closure->imageName);
Stop(_("Image file %s: %s."), Closure->imageName, strerror(errno));
return NULL;
}
file_flags = mode & WRITEABLE_IMAGE ? O_RDWR : O_RDONLY;
if(!(ii->file = LargeOpen(Closure->imageName, file_flags, IMG_PERMS)))
{ if(Closure->guiMode)
{ if(!(mode & PRINT_MODE))
PrintLog(": %s.\n", strerror(errno));
if(Closure->guiMode)
{ g_free(ii);
PrintLog(": %s", strerror(errno));
Stop(_("Can't open %s:\n%s"),Closure->imageName,strerror(errno));
}
else Stop(": %s", strerror(errno));
else Stop(_("Image file %s: %s."), Closure->imageName, strerror(errno));
return NULL;
}