Enhanced command -status to recognize -cdi

This commit is contained in:
Thomas Schmitt 2012-08-20 08:44:41 +00:00
parent 22ed5e7686
commit e22f8b5416
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)) if(!(is_default && no_defaults))
Xorriso_status_result(xorriso, filter, fp, flag & 2); 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->wdi[0] ? Text_shellsafe(xorriso->wdi,sfe,0) : "'/'"));
Xorriso_status_result(xorriso,filter,fp,flag&2); Xorriso_status_result(xorriso,filter,fp,flag&2);
sprintf(line,"-cdx %s\n", sprintf(line,"-cdx %s\n",

View File

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