Activated -ban_stdio_write
This commit is contained in:
parent
55632c428d
commit
8ee0765a6d
@ -3378,12 +3378,21 @@ int Xorriso_option_dev(struct XorrisO *xorriso, char *adr, int flag)
|
||||
{
|
||||
int ret;
|
||||
|
||||
if(xorriso->ban_stdio_write && strncmp(adr, "stdio:", 6)==0) {
|
||||
sprintf(xorriso->info_text,
|
||||
"Drive address banned by -ban_stdio_write : '%s'",
|
||||
adr);
|
||||
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "SORRY", 0);
|
||||
return(0);
|
||||
}
|
||||
|
||||
if((flag&3)==0)
|
||||
flag|= 3;
|
||||
if((flag&3)!=3) {
|
||||
/* <<< for now only -dev */;
|
||||
fprintf(stderr, ">>> XORRISO : would execute -%sdev %s\n",
|
||||
((flag&3)==1 ? "in" : ((flag&3)==2 ? "out" : "")), adr);
|
||||
return(1);
|
||||
}
|
||||
|
||||
if(xorriso->volset_change_pending) {
|
||||
|
@ -1 +1 @@
|
||||
#define Xorriso_timestamP "2007.10.17.214228"
|
||||
#define Xorriso_timestamP "2007.10.17.215809"
|
||||
|
Loading…
Reference in New Issue
Block a user