summaryrefslogtreecommitdiffstats
path: root/tools/h5jam/testh5jam.sh.in
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2005-10-05 18:46:18 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2005-10-05 18:46:18 (GMT)
commit4ae5b5f91f1c42020269e339d407451d84d61020 (patch)
tree7307db80c9ee16e2371bfdf05b169e1457bcc909 /tools/h5jam/testh5jam.sh.in
parenta58f962268efea0201032b0ae1bbcec30e95b58b (diff)
downloadhdf5-4ae5b5f91f1c42020269e339d407451d84d61020.zip
hdf5-4ae5b5f91f1c42020269e339d407451d84d61020.tar.gz
hdf5-4ae5b5f91f1c42020269e339d407451d84d61020.tar.bz2
[svn-r11499] 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/h5jam/testh5jam.sh.in')
-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
}
#