diff --git a/include/tests_printers_spools b/include/tests_printers_spools index 050ff36f..4ebd146f 100644 --- a/include/tests_printers_spools +++ b/include/tests_printers_spools @@ -91,8 +91,10 @@ LogText "Test: Searching cupsd configuration file" for I in ${CUPSD_CONFIG_LOCS}; do if [ -f ${I}/cupsd.conf ]; then - CUPSD_CONFIG_FILE="${I}/cupsd.conf" - LogText "Result: found ${CUPSD_CONFIG_FILE}" + if FileIsReadable ${I}/cupsd.conf; then + CUPSD_CONFIG_FILE="${I}/cupsd.conf" + LogText "Result: found ${CUPSD_CONFIG_FILE}" + fi fi done if [ ! "${CUPSD_CONFIG_FILE}" = "" ]; then