New -follow occasion "concat"

This commit is contained in:
2014-04-21 16:56:44 +00:00
parent 642ec7ca89
commit 9ae473dac0
9 changed files with 121 additions and 94 deletions

View File

@ -2003,15 +2003,13 @@ int Xorriso_is_concat_target(struct XorrisO *xorriso, char *target,
}
if(*ftype == 3) {
/* >>>
if follow_links is enabled : obtain target type
*ftype= Sfile_type(target, 1 | 4 | 8);
else
*/
why= "May not follow symbolic link.";
goto not_usable;
if(!xorriso->do_follow_concat) {
why= "May not follow symbolic link. No -follow \"...:concat:...\".";
goto not_usable;
}
*ftype= Sfile_type(target, 1 | 4 | 8);
if(*ftype == -1)
return(2); /* not yet existing regular */
}
if(*ftype == 2) {
why= "May not write data into a directory.";