No -rollback in -as mkisofs -print-size. New flag in Xorriso_change_is_pending.

This commit is contained in:
2010-12-02 06:32:31 +00:00
parent 9cdce269c8
commit f755fcd56d
10 changed files with 70 additions and 50 deletions

View File

@ -341,7 +341,7 @@ int Xorriso_option_end(struct XorrisO *xorriso, int flag)
else
cmd= "-end";
if(xorriso->volset_change_pending) {
if(flag&1)
if((flag & 1) || xorriso->volset_change_pending != 1)
which_will= "end the program discarding image changes";
else
which_will= "commit image changes and then end the program";
@ -355,7 +355,7 @@ int Xorriso_option_end(struct XorrisO *xorriso, int flag)
}
if(xorriso->volset_change_pending) {
if(flag&1) {
if((flag & 1) || xorriso->volset_change_pending != 1) {
xorriso->volset_change_pending= 0;
} else {
ret= Xorriso_option_commit(xorriso, 1);