Skip to content

Possible erratic rm -rf command #32

Description

@IvanGrigorik

Main test script _run() function contains a command that may remove the whole system or files in the root directory.

acmetest/letest.sh

Lines 729 to 730 in 0bd9b5a

rm -rf "$lehome/$TestingDomain"
rm -rf "$lehome/$TestingDomain$ECC_SUFFIX"

The lehome variable, which was defined above, may be erratic as well, since the DEFAULT_HOME variable directory may not be created, due to the absence of the ca directory.

acmetest/letest.sh

Lines 781 to 795 in 0bd9b5a

lehome="$DEFAULT_HOME"
if [ -f "$lehome/$PROJECT_ENTRY" ] ; then
$lehome/$PROJECT_ENTRY --uninstall >/dev/null 2>&1
fi
if [ -d $DEFAULT_HOME ] ; then
rm -rf $DEFAULT_HOME
fi
#reuse ca account keys for the low acount rate limit
if [ -d "ca" ]; then
mkdir -p "$DEFAULT_HOME"
cp -r ca "$DEFAULT_HOME/"
rm -f "$DEFAULT_HOME/ca/*/ca.conf"
fi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions