Looks like I've misunderstand the pathdup function purpose, due to checking it late in the night...
It is indeed should be inserted in main.c in function main:
533/*Addeachremaining (non-option) argument to the list of files534*torun.535*/536i=optind;537while(i<argc)538{/*newcodeshouldbeinsertedHERE*/539tmp=pathdup(argv[i++]);
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Why is this in pathdup? Surely we should handle it in the command-line arguments processing?
Looks like I've misunderstand the pathdup function purpose, due to checking it late in the night...
It is indeed should be inserted in main.c in function main: