From 863c595315c5be1446ed43204654d6cf5c7a6143 Mon Sep 17 00:00:00 2001 From: George Boudreau Date: Sat, 13 May 2006 16:12:45 +0000 Subject: [PATCH] added write-priv validation to BUILDDIR test --- common/func_validate_configs.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/common/func_validate_configs.sh b/common/func_validate_configs.sh index baeeca6..793a8ef 100644 --- a/common/func_validate_configs.sh +++ b/common/func_validate_configs.sh @@ -169,11 +169,6 @@ inline_doc for config_param in ${!PARAM_GROUP}; do # This is a tricky little piece of code.. executes a cmd string. case $config_param in - BUILDDIR) # We cannot have an or root mount point - echo -e "`eval echo $PARAM_VALS`" - [[ "xx x/x" =~ "x${!config_param}x" ]] && - write_error_and_die - ;; TIMEZONE) echo -e "`eval echo $PARAM_VALS`" ;; # Validate general parameters.. @@ -227,6 +222,11 @@ inline_doc # fatal -z -d -w, # warning -z+ -w+ SRC_ARCHIVE) validate_dir -z+ -d -w+ ;; + BUILDDIR) # The build directory/partition MUST exist and be writable by the user + validate_dir -z -d -w + [[ "xx x/x" =~ "x${!config_param}x" ]] && + write_error_and_die + ;; # Validate files, testable states: # fatal -z -e -s -w -x -r,