From 6950650a82445c94001da5cbd93a683845202496 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Tue, 19 Jan 2010 13:35:39 +0000 Subject: [PATCH] Avoided SORRY event for missing disk file during hardlink update --- xorriso/xorriso_timestamp.h | 2 +- xorriso/xorrisoburn.c | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/xorriso/xorriso_timestamp.h b/xorriso/xorriso_timestamp.h index b8ec5dba..039bb274 100644 --- a/xorriso/xorriso_timestamp.h +++ b/xorriso/xorriso_timestamp.h @@ -1 +1 @@ -#define Xorriso_timestamP "2010.01.17.145751" +#define Xorriso_timestamP "2010.01.19.133712" diff --git a/xorriso/xorrisoburn.c b/xorriso/xorrisoburn.c index 4213c1ba..86556071 100644 --- a/xorriso/xorrisoburn.c +++ b/xorriso/xorrisoburn.c @@ -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 */;