Makefile.am: add CDIO_ to all #defines in cdio_config.h
extract.c: give filename on extract errors and convert encoding to unix.
This commit is contained in:
@@ -111,7 +111,7 @@ static int udf_extract_files(udf_t *p_udf, udf_dirent_t *p_udf_dirent, const cha
|
|||||||
} else {
|
} else {
|
||||||
fd = fopen(psz_fullpath, "wb");
|
fd = fopen(psz_fullpath, "wb");
|
||||||
if (fd == NULL) {
|
if (fd == NULL) {
|
||||||
fprintf(stderr, " Unable to create file\n");
|
fprintf(stderr, " Unable to create file %s\n", psz_fullpath);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
i_file_length = udf_get_file_length(p_udf_dirent);
|
i_file_length = udf_get_file_length(p_udf_dirent);
|
||||||
@@ -124,7 +124,8 @@ static int udf_extract_files(udf_t *p_udf, udf_dirent_t *p_udf_dirent, const cha
|
|||||||
}
|
}
|
||||||
fwrite(buf, (size_t)MIN(i_file_length, i_read), 1, fd);
|
fwrite(buf, (size_t)MIN(i_file_length, i_read), 1, fd);
|
||||||
if (ferror(fd)) {
|
if (ferror(fd)) {
|
||||||
fprintf(stderr, " Error writing file: %s\n", strerror(errno));
|
fprintf(stderr, " Error writing file %s: %s\n", psz_fullpath,
|
||||||
|
strerror(errno));
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
i_file_length -= i_read;
|
i_file_length -= i_read;
|
||||||
@@ -198,7 +199,8 @@ static int iso_extract_files(iso9660_t* p_iso, const char *psz_path)
|
|||||||
}
|
}
|
||||||
fwrite(buf, (size_t)MIN(i_file_length, ISO_BLOCKSIZE), 1, fd);
|
fwrite(buf, (size_t)MIN(i_file_length, ISO_BLOCKSIZE), 1, fd);
|
||||||
if (ferror(fd)) {
|
if (ferror(fd)) {
|
||||||
fprintf(stderr, " Error writing file: %s\n", strerror(errno));
|
fprintf(stderr, " Error writing file %s: %s\n", psz_iso_name,
|
||||||
|
strerror(errno));
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
i_file_length -= ISO_BLOCKSIZE;
|
i_file_length -= ISO_BLOCKSIZE;
|
||||||
|
|||||||
@@ -19,10 +19,10 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
cdio_config.h: $(top_builddir)/config.h
|
cdio_config.h: $(top_builddir)/config.h
|
||||||
echo '#ifndef __CDIO_CONFIG_H__' > cdio_config.h
|
@echo '#ifndef __CDIO_CONFIG_H__' > cdio_config.h
|
||||||
echo '#define __CDIO_CONFIG_H__' >> cdio_config.h
|
@echo '#define __CDIO_CONFIG_H__' >> cdio_config.h
|
||||||
cat $(top_builddir)/config.h >>cdio_config.h
|
@@SED@ -re 's/^(#[ \t]*define) /\1 CDIO_/' $(top_builddir)/config.h >>cdio_config.h
|
||||||
echo '#endif /* #ifndef CDIO_CONFIG_H */' >>cdio_config.h
|
@echo '#endif /* #ifndef CDIO_CONFIG_H */' >>cdio_config.h
|
||||||
|
|
||||||
libcdioincludedir=$(includedir)/cdio
|
libcdioincludedir=$(includedir)/cdio
|
||||||
dist_libcdioinclude_HEADERS = \
|
dist_libcdioinclude_HEADERS = \
|
||||||
@@ -30,7 +30,6 @@ dist_libcdioinclude_HEADERS = \
|
|||||||
bytesex.h \
|
bytesex.h \
|
||||||
bytesex_asm.h \
|
bytesex_asm.h \
|
||||||
cdio.h \
|
cdio.h \
|
||||||
cdio_unconfig.h \
|
|
||||||
cd_types.h \
|
cd_types.h \
|
||||||
cdtext.h \
|
cdtext.h \
|
||||||
device.h \
|
device.h \
|
||||||
|
|||||||
Reference in New Issue
Block a user