New options -map and -map_single

This commit is contained in:
2008-05-15 15:00:39 +00:00
parent e2e793ed4b
commit cee91f4859
6 changed files with 130 additions and 60 deletions

View File

@ -1934,6 +1934,7 @@ int Xorriso_copy_properties(struct XorrisO *xorriso,
bit2= -follow, -not_*: this is not a command parameter
bit3= use offset and cut_size for cut_out_node
bit4= return 3 on rejection by exclusion or user
bit5= if directory then do not add sub tree
@return <=0 = error , 1 = added simple node , 2 = added directory ,
3 = rejected
*/
@ -2117,10 +2118,12 @@ attach_source:;
} else if(is_dir) {
Xorriso_transfer_properties(xorriso, &stbuf, (IsoNode *) dir, 0);
ret= Xorriso_add_tree(xorriso, dir, img_path, disk_path, NULL, flag&2);
if(ret<=0)
return(ret);
if(!(flag&32)) {
ret= Xorriso_add_tree(xorriso, dir, img_path, disk_path, NULL,
flag&2);
if(ret<=0)
return(ret);
}
} else {
if(resolve_link) {
ret= Xorriso_resolve_link(xorriso, disk_path, resolved_disk_path, 0);