Activated -ban_stdio_write

This commit is contained in:
Thomas Schmitt 2007-10-17 21:58:10 +00:00
parent 812c698c21
commit c94fca2e6b
2 changed files with 10 additions and 1 deletions

View File

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

View File

@ -1 +1 @@
#define Xorriso_timestamP "2007.10.17.214228"
#define Xorriso_timestamP "2007.10.17.215809"