summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2005-10-05 18:59:38 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2005-10-05 18:59:38 (GMT)
commit2669c8e9fe55ebde05774b263333d859cd5ec9f2 (patch)
treec52d72e421a629729b27fc59e1e13ef03ba09e1e /tools
parente21f821fc3cf10a549ccb849174b8a5a8f7cc90a (diff)
downloadhdf5-2669c8e9fe55ebde05774b263333d859cd5ec9f2.zip
hdf5-2669c8e9fe55ebde05774b263333d859cd5ec9f2.tar.gz
hdf5-2669c8e9fe55ebde05774b263333d859cd5ec9f2.tar.bz2
[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.
Diffstat (limited to 'tools')
-rw-r--r--tools/h5jam/testh5jam.sh.in7
1 files changed, 6 insertions, 1 deletions
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
}
#