Browse Source

Fixing bug from rev cbc5dbf: unknown -xattr mode caused mode "off"

master
Thomas Schmitt 4 years ago
parent
commit
d574a69834
  1. 12
      xorriso/opts_p_z.c
  2. 2
      xorriso/xorriso_timestamp.h

12
xorriso/opts_p_z.c

@ -2189,14 +2189,14 @@ int Xorriso_option_xattr(struct XorrisO *xorriso, char *mode, int flag)
{
int ret;
xorriso->do_aaip&= ~(4 | 8 | 1024);
if(strcmp(mode, "off")==0)
;
else if(strcmp(mode, "on") == 0 || strcmp(mode, "user") == 0)
if(strcmp(mode, "off") == 0) {
xorriso->do_aaip&= ~(4 | 8 | 1024);
} else if(strcmp(mode, "on") == 0 || strcmp(mode, "user") == 0) {
xorriso->do_aaip&= ~1024;
xorriso->do_aaip|= (4 | 8);
else if(strcmp(mode, "any")==0)
} else if(strcmp(mode, "any") == 0) {
xorriso->do_aaip|= (4 | 8 | 1024);
else {
} else {
sprintf(xorriso->info_text, "-xattr: unknown mode '%s'", mode);
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 0);
return(0);

2
xorriso/xorriso_timestamp.h

@ -1 +1 @@
#define Xorriso_timestamP "2017.11.15.100856"
#define Xorriso_timestamP "2017.11.15.101228"

Loading…
Cancel
Save