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

This commit is contained in:
Thomas Schmitt 2017-11-15 11:13:30 +01:00
parent 3794753662
commit d574a69834
2 changed files with 7 additions and 7 deletions

View File

@ -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);

View File

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