[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:
Albert Cheng 2005-10-05 13:59:38 -05:00
parent e21f821fc3
commit 2669c8e9fe

View File

@ -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
}
#