Browse Source

Counting -volid as pending change only if the text really changed

master
Thomas Schmitt 7 years ago
parent
commit
777863df2e
  1. 6
      xorriso/iso_img.c
  2. 2
      xorriso/xorriso_timestamp.h

6
xorriso/iso_img.c

@ -336,9 +336,11 @@ int Xorriso_set_volid(struct XorrisO *xorriso, char *volid, int flag)
ret= Xorriso_get_volume(xorriso, &volume, 0);
if(ret<=0)
return(ret);
if(iso_image_get_volume_id(volume) == NULL ||
strcmp(iso_image_get_volume_id(volume), volid) != 0)
if(!(flag&1))
Xorriso_set_change_pending(xorriso, 1);
iso_image_set_volume_id(volume, volid);
if(!(flag&1))
Xorriso_set_change_pending(xorriso, 1);
Xorriso_process_msg_queues(xorriso,0);
sprintf(xorriso->info_text,"Volume ID: '%s'",iso_image_get_volume_id(volume));
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "DEBUG", 0);

2
xorriso/xorriso_timestamp.h

@ -1 +1 @@
#define Xorriso_timestamP "2015.04.23.142257"
#define Xorriso_timestamP "2015.04.23.142407"

Loading…
Cancel
Save