From b9f7230dcd7939ec1570aabfaa434f202532c972 Mon Sep 17 00:00:00 2001 From: Chris Masone Date: Thu, 8 Apr 2010 16:05:32 -0700 Subject: [PATCH] Fix permissions on fake root cert that is injected for login testing. It was getting 0600 Review URL: http://codereview.chromium.org/1626007 --- mod_for_test_scripts/710enableAuthTesting | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mod_for_test_scripts/710enableAuthTesting b/mod_for_test_scripts/710enableAuthTesting index edf869f225..fb00cff181 100755 --- a/mod_for_test_scripts/710enableAuthTesting +++ b/mod_for_test_scripts/710enableAuthTesting @@ -15,5 +15,7 @@ cat "${CERT_DIR}/${CERT_NAME}.key" > "${ROOT_FS_DIR}/etc/${CERT_NAME}.key" # Sadly, our fake cert HAS to be first in this file. TMPFILE=$(mktemp) CERT_FILE="${ROOT_FS_DIR}/etc/login_trust_root.pem" +PERMS=$(stat --printf="%a" "${CERT_FILE}") cat "${CERT_DIR}/${CERT_NAME}.pem" "${CERT_FILE}" > "${TMPFILE}" mv -f "${TMPFILE}" "${CERT_FILE}" +chmod "${PERMS}" "${CERT_FILE}"