diff --git a/xorriso/xorriso_timestamp.h b/xorriso/xorriso_timestamp.h index 0318416a..6534faa9 100644 --- a/xorriso/xorriso_timestamp.h +++ b/xorriso/xorriso_timestamp.h @@ -1 +1 @@ -#define Xorriso_timestamP "2008.08.24.124424" +#define Xorriso_timestamP "2008.08.24.125257" diff --git a/xorriso/xorrisoburn.c b/xorriso/xorrisoburn.c index 53f0d457..5b5d5e24 100644 --- a/xorriso/xorrisoburn.c +++ b/xorriso/xorrisoburn.c @@ -2560,7 +2560,7 @@ int Xorriso_tree_restore_node(struct XorrisO *xorriso, IsoNode *node, int target_deleted= 0; char *what= "[unknown filetype]", sfe[5*SfileadrL], sfe2[5*SfileadrL]; char buf[32*1024], type_text[5], temp_path[SfileadrL]; - char *link_target, *open_path_pt; + char *link_target, *open_path_pt= NULL; off_t todo, size, seek_ret, last_p_count= 0; void *data_stream= NULL; mode_t mode; @@ -2663,7 +2663,7 @@ int Xorriso_tree_restore_node(struct XorrisO *xorriso, IsoNode *node, } close(write_fd); write_fd= -1; - if(todo > 0 && xorriso->extract_error_mode == 2) { + if(todo > 0 && xorriso->extract_error_mode == 2 && open_path_pt != NULL) { unlink(open_path_pt); target_deleted= 1; } @@ -2763,7 +2763,7 @@ restore_properties:; ex:; if(write_fd >= 0) { close(write_fd); - if(ret <= 0 && xorriso->extract_error_mode == 2) + if(ret <= 0 && xorriso->extract_error_mode == 2 && open_path_pt != NULL) unlink(open_path_pt); } if(data_stream!=NULL)