Skip to content

Commit

Permalink
Merge branch 'master' of git+ssh://192.168.0.20/home/serv/jhead
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias-Wandel committed Jun 6, 2023
2 parents 06e8d7a + 9688daa commit 64894db
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jhead.c
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,11 @@ static void DoCommand(const char * FileName, int ShowIt)
// Build the exec string. &i and &o in the exec string get replaced by input and output files.
for (a=0;;a++){
if (ApplyCommand[a] == '&'){
printf("Arg &%c, e=%d max %d\n",ApplyCommand[a+1], e, PATH_MAX);
if (ApplyCommand[a+1] == 'i' || ApplyCommand[a+1] == 'o'){
if (e > PATH_MAX * 2) ErrFatal("Specified command line too long");
}

if (ApplyCommand[a+1] == 'i'){
// Input file.
e += shellescape(ExecString+e, FileName);
Expand Down

0 comments on commit 64894db

Please sign in to comment.