From 2669c8e9fe55ebde05774b263333d859cd5ec9f2 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Wed, 5 Oct 2005 13:59:38 -0500 Subject: [svn-r11500] Bug fix. SETUP Was using "cp" command which means file $2 will inherit the permission setting of file $1. If $1 is read-only, so will $2. That will cause failure when the test attempts to write it later on. Changed to use the "cat" command. Tested in LANL QSC and Flash. --- tools/h5jam/testh5jam.sh.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/h5jam/testh5jam.sh.in b/tools/h5jam/testh5jam.sh.in index e12f44e..3a002a2 100644 --- a/tools/h5jam/testh5jam.sh.in +++ b/tools/h5jam/testh5jam.sh.in @@ -93,9 +93,14 @@ CLEANUP() { # SETUP file tocopy # Clone a standard input file in the test directory +# Modification: +# Was using "cp" command which means file $2 will inherit the permission +# setting of file $1. If $1 is read-only, so will $2. That will cause +# failure when the test attempts to write it later on. Changed to use +# the "cat" command. # SETUP() { - cp $1 $2 + cat < $1 > $2 } # -- cgit v0.12