Changed -f, -f-off to -follow, -graft-points, -graf-points-off to -pathspecs

This commit is contained in:
Thomas Schmitt 2007-12-06 15:02:27 +00:00
parent de06347f6f
commit 86d1664c83
4 changed files with 62 additions and 62 deletions

View File

@ -623,21 +623,21 @@ SORRY event occured.
.TP .TP
.B Settings for data insertion: .B Settings for data insertion:
.TP .TP
> \fB\-f\fR > \fB\-follow\fR "on"|"off"
Follow symbolic links under disk_paths. Enable or disable resolution of symbolic links under disk_paths.
If disabled by "off" then symbolic links are added as link objects with
unchanged target address. If enabled by "on", then the link target gets added.
.TP .TP
> \fB\-f-off\fR \fB\-pathspecs\fR "on"|"off"
Do not follow symbolic links under disk_paths. Control parameter interpretation with xorriso action -add.
.TP .br
\fB\-graft-points\fR "on" enables pathspecs of the form
For xorriso action -add this enables pathspecs of the form
.B target=source .B target=source
like with program mkisofs. It also disables pattern expansion for like with program mkisofs -graft-points.
command -add. It also disables -disk_pattern expansion for command -add.
.TP .br
\fB\-graft-points-off\fR "off" disables pathspecs of the form target=source
For xorriso action -add this disables pathspecs of the form target=source and eventually enables -disk_pattern expansion.
and eventually enables -disk_pattern expansion for command -add.
.TP .TP
.B Settings for result writing: .B Settings for result writing:
.TP .TP

View File

@ -3450,21 +3450,15 @@ int Xorriso_status(struct XorrisO *xorriso, char *filter, FILE *fp, int flag)
Xorriso_status_result(xorriso,filter,fp,flag&2); Xorriso_status_result(xorriso,filter,fp,flag&2);
} }
if(xorriso->allow_graft_points) { is_default= !xorriso->allow_graft_points;
sprintf(line,"-graft-points\n"); sprintf(line,"-pathspecs %s\n", xorriso->allow_graft_points ? "on" : "off");
if(!(is_default && no_defaults))
Xorriso_status_result(xorriso,filter,fp,flag&2); Xorriso_status_result(xorriso,filter,fp,flag&2);
} else if(!no_defaults) {
sprintf(line,"-graft-points-off\n");
Xorriso_status_result(xorriso,filter,fp,flag&2);
}
if(xorriso->do_follow_links) { is_default= !xorriso->do_follow_links;
sprintf(line,"-f\n"); sprintf(line,"-follow %s\n", xorriso->do_follow_links ? "on" : "off");
if(!(is_default && no_defaults))
Xorriso_status_result(xorriso,filter,fp,flag&2); Xorriso_status_result(xorriso,filter,fp,flag&2);
} else if(!no_defaults) {
sprintf(line,"-f-off\n");
Xorriso_status_result(xorriso,filter,fp,flag&2);
}
is_default= (xorriso->do_overwrite==2); is_default= (xorriso->do_overwrite==2);
sprintf(line,"-overwrite %s\n",(xorriso->do_overwrite == 1 ? "on" : sprintf(line,"-overwrite %s\n",(xorriso->do_overwrite == 1 ? "on" :
@ -5519,11 +5513,18 @@ int Xorriso_option_iso_rr_pattern(struct XorrisO *xorriso, char *mode,int flag)
} }
/* Options -f and -f-off */ /* Option -follow */
/* @param flag bit0= -f-off */ int Xorriso_option_follow(struct XorrisO *xorriso, char *mode, int flag)
int Xorriso_option_f(struct XorrisO *xorriso, int flag)
{ {
xorriso->do_follow_links= !(flag&1); if(strcmp(mode, "off")==0)
xorriso->do_follow_links= 0;
else if(strcmp(mode, "on")==0)
xorriso->do_follow_links= 1;
else {
sprintf(xorriso->info_text, "-follow: unknown mode '%s'", mode);
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "SORRY", 0);
return(0);
}
return(1); return(1);
} }
@ -5592,15 +5593,6 @@ int Xorriso_option_gid(struct XorrisO *xorriso, char *gid, int flag)
} }
/* Option -graft-points */
/* @param flag bit0= disable graft points */
int Xorriso_option_graft_points(struct XorrisO *xorriso, int flag)
{
xorriso->allow_graft_points= !(flag&1);
return(1);
}
/* Option -help and part of -prog_help */ /* Option -help and part of -prog_help */
int Xorriso_option_help(struct XorrisO *xorriso, int flag) int Xorriso_option_help(struct XorrisO *xorriso, int flag)
{ {
@ -5666,9 +5658,9 @@ int Xorriso_option_help(struct XorrisO *xorriso, int flag)
" filesystem into the ISO image. Much like mkisofs.", " filesystem into the ISO image. Much like mkisofs.",
" -path-list disk_path", " -path-list disk_path",
" Like -add but read the pathspecs from file disk_path.", " Like -add but read the pathspecs from file disk_path.",
" -graft-points Allow pathspecs of form iso_rr_path=disk_path", " -pathspecs \"on\"|\"off\" Allow or disallow pathspecs of form ",
" -graft-points-off Disallow pathspecs of form iso_rr_path=disk_path", " iso_rr_path=disk_path . Only \"off\" allows eventual",
" but allow eventual -disk_pattern expansion.", " -disk_pattern expansion.",
"", "",
"> -cp_r disk_path [...] iso_rr_path", "> -cp_r disk_path [...] iso_rr_path",
" Insert the given files or directory trees from filesystem", " Insert the given files or directory trees from filesystem",
@ -5696,8 +5688,7 @@ int Xorriso_option_help(struct XorrisO *xorriso, int flag)
" Delete empty directories.", " Delete empty directories.",
" -- Mark end of particular action argument list.", " -- Mark end of particular action argument list.",
"", "",
"> -f Follow symbolic links within disk_path.", "> -follow \"on\"|\"off\" Follow symbolic links within disk_path.",
"> -f-off Do not follow symbolic links within disk_path.",
"", "",
" -overwrite \"on\"|\"nondir\"|\"off\"", " -overwrite \"on\"|\"nondir\"|\"off\"",
" Allow or disallow to overwrite existing files in ISO image.", " Allow or disallow to overwrite existing files in ISO image.",
@ -6396,6 +6387,22 @@ ex:;
} }
/* Option -pathspecs */
int Xorriso_option_pathspecs(struct XorrisO *xorriso, char *mode, int flag)
{
if(strcmp(mode, "off")==0)
xorriso->allow_graft_points= 0;
else if(strcmp(mode, "on")==0)
xorriso->allow_graft_points= 1;
else {
sprintf(xorriso->info_text, "-pathspecs: unknown mode '%s'", mode);
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "SORRY", 0);
return(0);
}
return(1);
}
/* Option -pkt_output */ /* Option -pkt_output */
int Xorriso_option_pkt_output(struct XorrisO *xorriso, char *mode, int flag) int Xorriso_option_pkt_output(struct XorrisO *xorriso, char *mode, int flag)
{ {
@ -6970,11 +6977,9 @@ next_command:;
(*idx)++; (*idx)++;
ret= Xorriso_option_iso_rr_pattern(xorriso, arg1, 0); ret= Xorriso_option_iso_rr_pattern(xorriso, arg1, 0);
} else if(strcmp(cmd,"f")==0) { } else if(strcmp(cmd,"follow")==0) {
ret= Xorriso_option_f(xorriso, 0); (*idx)++;
ret= Xorriso_option_follow(xorriso, arg1, 0);
} else if(strcmp(cmd,"f-off")==0 || strcmp(cmd,"f_off")==0) {
ret= Xorriso_option_f(xorriso, 1);
} else if(strcmp(cmd,"find")==0 || strcmp(cmd,"findi")==0) { } else if(strcmp(cmd,"find")==0 || strcmp(cmd,"findi")==0) {
(*idx)++; (*idx)++;
@ -6996,13 +7001,6 @@ next_command:;
(*idx)++; (*idx)++;
ret= Xorriso_option_gid(xorriso,arg1,0); ret= Xorriso_option_gid(xorriso,arg1,0);
} else if(strcmp(cmd,"graft-points")==0 || strcmp(cmd,"graft_points")==0) {
ret= Xorriso_option_graft_points(xorriso, 0);
} else if(strcmp(cmd,"graft-points-off")==0 ||
strcmp(cmd,"graft_points_off")==0) {
ret= Xorriso_option_graft_points(xorriso, 1);
} else if(strcmp(cmd,"help")==0) { } else if(strcmp(cmd,"help")==0) {
Xorriso_option_help(xorriso,0); Xorriso_option_help(xorriso,0);
@ -7075,6 +7073,10 @@ next_command:;
(*idx)++; (*idx)++;
ret= Xorriso_option_path_list(xorriso, arg1, 0); ret= Xorriso_option_path_list(xorriso, arg1, 0);
} else if(strcmp(cmd,"pathspecs")==0) {
(*idx)++;
ret= Xorriso_option_pathspecs(xorriso, arg1, 0);
} else if(strcmp(cmd,"pkt_output")==0) { } else if(strcmp(cmd,"pkt_output")==0) {
(*idx)++; (*idx)++;
ret= Xorriso_option_pkt_output(xorriso, arg1, 0); ret= Xorriso_option_pkt_output(xorriso, arg1, 0);

View File

@ -201,9 +201,8 @@ int Xorriso_option_end(struct XorrisO *xorriso, int flag);
int Xorriso_option_iso_rr_pattern(struct XorrisO *xorriso, char *mode, int Xorriso_option_iso_rr_pattern(struct XorrisO *xorriso, char *mode,
int flag); int flag);
/* Options -f and -f-off */ /* Option -follow */
/* @param flag bit0= -f-off */ int Xorriso_option_follow(struct XorrisO *xorriso, char *mode, int flag);
int Xorriso_option_f(struct XorrisO *xorriso, int flag);
/* Option -find alias -findi */ /* Option -find alias -findi */
int Xorriso_option_findi(struct XorrisO *xorriso, char *pattern, int flag); int Xorriso_option_findi(struct XorrisO *xorriso, char *pattern, int flag);
@ -217,9 +216,8 @@ int Xorriso_option_fs(struct XorrisO *xorriso, char *size, int flag);
/* Option -gid */ /* Option -gid */
int Xorriso_option_gid(struct XorrisO *xorriso, char *gid, int flag); int Xorriso_option_gid(struct XorrisO *xorriso, char *gid, int flag);
/* Option -graft-points */ /* Option -pathspecs */
/* @param flag bit0= disable graft points */ int Xorriso_option_pathspecs(struct XorrisO *xorriso, char *mode, int flag);
int Xorriso_option_graft_points(struct XorrisO *xorriso, int flag);
/* Option -help and part of -prog_help */ /* Option -help and part of -prog_help */
int Xorriso_option_help(struct XorrisO *xorriso, int flag); int Xorriso_option_help(struct XorrisO *xorriso, int flag);

View File

@ -1 +1 @@
#define Xorriso_timestamP "2007.12.05.143632" #define Xorriso_timestamP "2007.12.06.150102"