Revoked rev 4641. It is not a bug but a feature. E.g. for reading.

This commit is contained in:
Thomas Schmitt 2012-03-03 18:50:42 +00:00
parent d5dd6c96cd
commit dfb641b3b1
2 changed files with 2 additions and 9 deletions

View File

@ -261,7 +261,7 @@ ex:;
int Xorriso_set_filter(struct XorrisO *xorriso, void *in_node, int Xorriso_set_filter(struct XorrisO *xorriso, void *in_node,
char *path, char *filter_name, int flag) char *path, char *filter_name, int flag)
{ {
int ret, strip_suffix= 0, strip_filter= 0, filter_ret= 0, did_work= 0; int ret, strip_suffix= 0, strip_filter= 0, filter_ret= 0;
int explicit_suffix= 0, internal_filter= 0; int explicit_suffix= 0, internal_filter= 0;
IsoNode *node; IsoNode *node;
IsoFile *file; IsoFile *file;
@ -369,7 +369,6 @@ int Xorriso_set_filter(struct XorrisO *xorriso, void *in_node,
ret= iso_file_remove_filter(file, 0); ret= iso_file_remove_filter(file, 0);
if(ret != 1) if(ret != 1)
break; break;
did_work= 1;
} }
filter_ret= 1; filter_ret= 1;
} else if (internal_filter == 1 || internal_filter == 2) { } else if (internal_filter == 1 || internal_filter == 2) {
@ -380,7 +379,6 @@ int Xorriso_set_filter(struct XorrisO *xorriso, void *in_node,
Xorriso_report_iso_error(xorriso, "", filter_ret, Xorriso_report_iso_error(xorriso, "", filter_ret,
"Error when setting filter to ISO node", 0, "FAILURE", 1); "Error when setting filter to ISO node", 0, "FAILURE", 1);
} }
did_work= 1;
} else if (internal_filter == 3 || internal_filter == 4) { } else if (internal_filter == 3 || internal_filter == 4) {
filter_ret = iso_file_add_gzip_filter(file, filter_ret = iso_file_add_gzip_filter(file,
1 | ((internal_filter == 4) << 1)); 1 | ((internal_filter == 4) << 1));
@ -389,7 +387,6 @@ int Xorriso_set_filter(struct XorrisO *xorriso, void *in_node,
Xorriso_report_iso_error(xorriso, "", filter_ret, Xorriso_report_iso_error(xorriso, "", filter_ret,
"Error when setting filter to ISO node", 0, "FAILURE", 1); "Error when setting filter to ISO node", 0, "FAILURE", 1);
} }
did_work= 1;
} else { } else {
#ifndef Xorriso_allow_extf_suiD #ifndef Xorriso_allow_extf_suiD
@ -410,7 +407,6 @@ int Xorriso_set_filter(struct XorrisO *xorriso, void *in_node,
Xorriso_report_iso_error(xorriso, "", filter_ret, Xorriso_report_iso_error(xorriso, "", filter_ret,
"Error when setting filter to ISO node", 0, "FAILURE", 1); "Error when setting filter to ISO node", 0, "FAILURE", 1);
} }
did_work= 1;
} }
if(filter_ret != 1 && new_name[0] && old_name != NULL) { if(filter_ret != 1 && new_name[0] && old_name != NULL) {
ret = iso_node_set_name(node, old_name); ret = iso_node_set_name(node, old_name);
@ -420,7 +416,6 @@ int Xorriso_set_filter(struct XorrisO *xorriso, void *in_node,
Xorriso_report_iso_error(xorriso, "", ret, Xorriso_report_iso_error(xorriso, "", ret,
"Error when renaming ISO node", 0, "FAILURE", 1); "Error when renaming ISO node", 0, "FAILURE", 1);
} }
did_work= 1;
} }
if(flag & 2) { if(flag & 2) {
xorriso->pacifier_count++; xorriso->pacifier_count++;
@ -433,8 +428,6 @@ int Xorriso_set_filter(struct XorrisO *xorriso, void *in_node,
ret= filter_ret; ret= filter_ret;
ex:; ex:;
if(did_work)
Xorriso_set_change_pending(xorriso, 0);
if(old_name != NULL) if(old_name != NULL)
free(old_name); free(old_name);
Xorriso_free_meM(new_name); Xorriso_free_meM(new_name);

View File

@ -1 +1 @@
#define Xorriso_timestamP "2012.03.03.182917" #define Xorriso_timestamP "2012.03.03.185100"