diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2005-10-05 18:59:38 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2005-10-05 18:59:38 (GMT) |
commit | 2669c8e9fe55ebde05774b263333d859cd5ec9f2 (patch) | |
tree | c52d72e421a629729b27fc59e1e13ef03ba09e1e | |
parent | e21f821fc3cf10a549ccb849174b8a5a8f7cc90a (diff) | |
download | hdf5-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.
-rw-r--r-- | tools/h5jam/testh5jam.sh.in | 7 |
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 } # |