Commit fdd78221 by Richard Stallman

(rel_source_subdir): Prune out redundant /subdir/../ to prevent recursion.

From-SVN: r6068
parent 8f8470e0
...@@ -192,6 +192,11 @@ for code in ALL STD ; do ...@@ -192,6 +192,11 @@ for code in ALL STD ; do
do do
new_files_to_check="" new_files_to_check=""
for file in $files_to_check ; do for file in $files_to_check ; do
xxfile=`echo $file | sed -e 's|/\([^/\.][^/\.]*\)/\.\./|/|'`
# Just in case we have edited out a symbolic link
if [ -f $src_dir_std/$file -a -f $src_dir_std/$xxfile ] ; then
file=$xxfile
fi
case " $rel_source_files " in case " $rel_source_files " in
*" ${file} "*) *" ${file} "*)
# Already seen $file; nothing to do # Already seen $file; nothing to do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment