Enhanced command -status to recognize -cdi

This commit is contained in:
Thomas Schmitt 2012-08-20 08:44:41 +00:00
parent 57baaa4c52
commit da2d02048a
2 changed files with 6 additions and 2 deletions

View File

@ -1443,7 +1443,11 @@ int Xorriso_status(struct XorrisO *xorriso, char *filter, FILE *fp, int flag)
if(!(is_default && no_defaults))
Xorriso_status_result(xorriso, filter, fp, flag & 2);
sprintf(line,"-cd %s\n",
if(strncmp(filter, "-cdi", 4) == 0)
sprintf(line,"-cdi ");
else
sprintf(line,"-cd ");
sprintf(line + strlen(line),"%s\n",
(xorriso->wdi[0] ? Text_shellsafe(xorriso->wdi,sfe,0) : "'/'"));
Xorriso_status_result(xorriso,filter,fp,flag&2);
sprintf(line,"-cdx %s\n",

View File

@ -1 +1 @@
#define Xorriso_timestamP "2012.08.14.103138"
#define Xorriso_timestamP "2012.08.20.084354"