"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libisofs/joliet.c" between
xorriso-1.5.2.tar.gz and xorriso-1.5.4.tar.gz

About: GNU xorriso creates, loads, manipulates and writes ISO 9660 filesystem images with Rock Ridge extensions. It is suitable for incremental data backup and for production of bootable ISO 9660 images. GNU xorriso is a statical compilation of the libraries libburn, libisofs, libisoburn, and libjte.

joliet.c  (xorriso-1.5.2):joliet.c  (xorriso-1.5.4)
skipping to change at line 470 skipping to change at line 470
while (j + 1 < nchildren && while (j + 1 < nchildren &&
!cmp_node_name(children + i, children + j + 1)) { !cmp_node_name(children + i, children + j + 1)) {
++j; ++j;
} }
if (j == i) { if (j == i) {
/* name is unique */ /* name is unique */
continue; continue;
} }
/* /*
* A max of 7 characters is good enought, it allows handling up to * A max of 7 characters is good enough, it allows handling up to
* 9,999,999 files with same name. * 9,999,999 files with same name.
*/ */
/* Important: joliet_create_mangled_name() relies on digits < 8 */ /* Important: joliet_create_mangled_name() relies on digits < 8 */
while (digits < 8) { while (digits < 8) {
int ok, k; int ok, k;
uint16_t *dot; uint16_t *dot;
int change = 0; /* number to be written */ int change = 0; /* number to be written */
/* copy name to buffer */ /* copy name to buffer */
skipping to change at line 1109 skipping to change at line 1109
size_t i, len; size_t i, len;
uint8_t *buf = NULL; uint8_t *buf = NULL;
struct ecma119_path_table_record *rec; struct ecma119_path_table_record *rec;
void (*write_int)(uint8_t*, uint32_t, int); void (*write_int)(uint8_t*, uint32_t, int);
JolietNode *dir; JolietNode *dir;
uint32_t path_table_size; uint32_t path_table_size;
int parent = 0; int parent = 0;
int ret= ISO_SUCCESS; int ret= ISO_SUCCESS;
uint8_t *zeros = NULL; uint8_t *zeros = NULL;
/* 256 is just a convenient size large enought */ /* 256 is just a convenient size large enough */
LIBISO_ALLOC_MEM(buf, uint8_t, 256); LIBISO_ALLOC_MEM(buf, uint8_t, 256);
LIBISO_ALLOC_MEM(zeros, uint8_t, BLOCK_SIZE); LIBISO_ALLOC_MEM(zeros, uint8_t, BLOCK_SIZE);
path_table_size = 0; path_table_size = 0;
write_int = l_type ? iso_lsb : iso_msb; write_int = l_type ? iso_lsb : iso_msb;
for (i = 0; i < t->joliet_ndirs; i++) { for (i = 0; i < t->joliet_ndirs; i++) {
dir = pathlist[i]; dir = pathlist[i];
/* find the index of the parent in the table */ /* find the index of the parent in the table */
while ((i) && pathlist[parent] != dir->parent) { while ((i) && pathlist[parent] != dir->parent) {
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)