Bug fix: If iso_write_opts_set_hardlinks() enabled automatic inode numbers,

then they did not get into effect with nodes were zisofs decoder filters got
attached during the image load process.
This commit is contained in:
Thomas Schmitt 2015-03-09 19:59:54 +01:00
parent 9e17516e0d
commit e56a782b89

View File

@ -943,12 +943,22 @@ ex:;
return path; return path;
} }
/* @return 1 = ok , 0 = not an ISO image stream , <0 = error */ /*
@param flag bit0= in case of filter stream do not dig for base stream
@return 1 = ok , 0 = not an ISO image stream , <0 = error
*/
int iso_stream_set_image_ino(IsoStream *stream, ino_t ino, int flag) int iso_stream_set_image_ino(IsoStream *stream, ino_t ino, int flag)
{ {
IsoStream *base_stream;
if (stream == NULL) { if (stream == NULL) {
return ISO_NULL_POINTER; return ISO_NULL_POINTER;
} }
if (!(flag & 1)) {
base_stream = iso_stream_get_input_stream(stream, 1);
if (base_stream != NULL)
stream = base_stream;
}
if (stream->class == &fsrc_stream_class) { if (stream->class == &fsrc_stream_class) {
FSrcStreamData *fsrc_data = stream->data; FSrcStreamData *fsrc_data = stream->data;
fsrc_data->ino_id = ino; fsrc_data->ino_id = ino;