Made use of Text_shellsafe bit1 for messages with two file names

This commit is contained in:
Thomas Schmitt 2011-05-06 13:20:36 +00:00
parent af8b7aafb9
commit 1e4945f483
5 changed files with 8 additions and 8 deletions

View File

@ -889,7 +889,7 @@ int Xorriso_lsx_filev(struct XorrisO *xorriso, char *wd,
if(link_target[0]) { if(link_target[0]) {
Text_shellsafe(filev[i], xorriso->result_line, 1); Text_shellsafe(filev[i], xorriso->result_line, 1);
strcat(xorriso->result_line, " -> "); strcat(xorriso->result_line, " -> ");
Text_shellsafe(link_target, xorriso->result_line, 1); Text_shellsafe(link_target, xorriso->result_line, 1 | 2);
} else { } else {
Text_shellsafe(filev[i], xorriso->result_line, 1); Text_shellsafe(filev[i], xorriso->result_line, 1);
} }
@ -1710,7 +1710,7 @@ int Xorriso_restore_make_hl(struct XorrisO *xorriso,
sprintf(xorriso->info_text, "Hardlinking failed: "); sprintf(xorriso->info_text, "Hardlinking failed: ");
Text_shellsafe(new_path, xorriso->info_text, 1); Text_shellsafe(new_path, xorriso->info_text, 1);
strcat(xorriso->info_text, " -> "); strcat(xorriso->info_text, " -> ");
Text_shellsafe(old_path, xorriso->info_text, 1); Text_shellsafe(old_path, xorriso->info_text, 1 | 2);
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, errno, "WARNING", 0); Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, errno, "WARNING", 0);
return(0); return(0);
} }

View File

@ -1617,7 +1617,7 @@ int Xorriso_rename(struct XorrisO *xorriso, void *boss_iter,
sprintf(xorriso->info_text, "May not rename "); sprintf(xorriso->info_text, "May not rename ");
Text_shellsafe(eff_origin, xorriso->info_text, 1); Text_shellsafe(eff_origin, xorriso->info_text, 1);
strcat(xorriso->info_text, " to its own sub address "); strcat(xorriso->info_text, " to its own sub address ");
Text_shellsafe(eff_dest, xorriso->info_text, 1); Text_shellsafe(eff_dest, xorriso->info_text, 1 | 2);
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 0); Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 0);
{ret= 0; goto ex;} {ret= 0; goto ex;}
} }
@ -1809,7 +1809,7 @@ int Xorriso_clone_tree(struct XorrisO *xorriso, void *boss_iter,
strcpy(xorriso->info_text, "Cloned in ISO image: "); strcpy(xorriso->info_text, "Cloned in ISO image: ");
Text_shellsafe(eff_origin, xorriso->info_text, 1); Text_shellsafe(eff_origin, xorriso->info_text, 1);
strcat(xorriso->info_text, " to "); strcat(xorriso->info_text, " to ");
Text_shellsafe(eff_dest, xorriso->info_text, 1); Text_shellsafe(eff_dest, xorriso->info_text, 1 | 2);
strcat(xorriso->info_text, "\n"); strcat(xorriso->info_text, "\n");
Xorriso_info(xorriso, 0); Xorriso_info(xorriso, 0);
} }

View File

@ -1465,7 +1465,7 @@ int Xorriso_ls_filev(struct XorrisO *xorriso, char *wd,
if(link_target[0] && (flag&5)==1) { if(link_target[0] && (flag&5)==1) {
Text_shellsafe(filev[i], xorriso->result_line, 1), Text_shellsafe(filev[i], xorriso->result_line, 1),
strcat(xorriso->result_line, " -> "); strcat(xorriso->result_line, " -> ");
Text_shellsafe(link_target, xorriso->result_line, 1); Text_shellsafe(link_target, xorriso->result_line, 1 | 2);
} else { } else {
Text_shellsafe(filev[i], xorriso->result_line, 1); Text_shellsafe(filev[i], xorriso->result_line, 1);
} }
@ -1575,7 +1575,7 @@ cannot_create_iter:;
if(link_target[0] && (flag&1)) { if(link_target[0] && (flag&1)) {
Text_shellsafe(npt, xorriso->result_line, 1); Text_shellsafe(npt, xorriso->result_line, 1);
strcat(xorriso->result_line, " -> "); strcat(xorriso->result_line, " -> ");
Text_shellsafe(link_target, xorriso->result_line, 1); Text_shellsafe(link_target, xorriso->result_line, 1 | 2);
} else { } else {
Text_shellsafe(npt, xorriso->result_line, 1); Text_shellsafe(npt, xorriso->result_line, 1);
} }

View File

@ -823,7 +823,7 @@ int Xorriso_option_mvi(struct XorrisO *xorriso, int argc, char **argv,
sprintf(xorriso->info_text, "Renamed in ISO image: "); sprintf(xorriso->info_text, "Renamed in ISO image: ");
Text_shellsafe(eff_origin, xorriso->info_text, 1); Text_shellsafe(eff_origin, xorriso->info_text, 1);
strcat(xorriso->info_text, " to "); strcat(xorriso->info_text, " to ");
Text_shellsafe(eff_dest, xorriso->info_text, 1); Text_shellsafe(eff_dest, xorriso->info_text, 1 | 2);
strcat(xorriso->info_text, "\n"); strcat(xorriso->info_text, "\n");
Xorriso_info(xorriso, 0); Xorriso_info(xorriso, 0);

View File

@ -1 +1 @@
#define Xorriso_timestamP "2011.05.06.121218" #define Xorriso_timestamP "2011.05.06.132058"