Avoided SORRY event for missing disk file during hardlink update

master
Thomas Schmitt 13 years ago
parent 42cf661ef8
commit 6950650a82
  1. 2
      xorriso/xorriso_timestamp.h
  2. 9
      xorriso/xorrisoburn.c

@ -1 +1 @@
#define Xorriso_timestamP "2010.01.17.145751"
#define Xorriso_timestamP "2010.01.19.133712"

@ -7704,10 +7704,10 @@ int Xorriso_widen_hardlink(struct XorrisO *xorriso, void * boss_iter,
/* Lookup all di_array instances of node */
if(LIBISO_ISDIR(node))
return(1);
return(3);
ret= Xorriso_search_di_range(xorriso, node, &idx, &low, &high, 2);
if(ret <= 0)
return(1);
return(3);
/* Check and reset di_do_widen bits */
for(i= low; i <= high; i++) {
if(node != xorriso->di_array[i]) /* might be NULL */
@ -7717,12 +7717,15 @@ int Xorriso_widen_hardlink(struct XorrisO *xorriso, void * boss_iter,
xorriso->di_do_widen[i / 8]&= ~(1 << (i % 8));
}
if(idx < 0 || !do_widen)
return(1);
return(3);
ret= Xorriso_pfx_disk_path(xorriso, abs_path, iso_prefix, disk_prefix,
disk_path, 0);
if(ret <= 0)
return(ret);
ret= Sfile_type(disk_path, 1);
if(ret < 0)
return(3); /* does not exist on disk */
/* >>> compare_result bit17 = is_split */;

Loading…
Cancel
Save