mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-18 15:15:56 +08:00
[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.
This commit is contained in:
parent
e21f821fc3
commit
2669c8e9fe
@ -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
|
||||
}
|
||||
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user