diff options
| author | Slack Coder <slackcoder@server.ky> | 2025-01-28 15:58:04 -0500 | 
|---|---|---|
| committer | Slack Coder <slackcoder@server.ky> | 2025-01-29 06:27:23 -0500 | 
| commit | f69b4389539e0b04a47bc37facdb03bdd3cd3c9b (patch) | |
| tree | b226187b69e1541cc4537668b923b1f1723dbfdc /SBO-Lib/lib/SBO | |
| parent | 6379cb0c0fa848f61ec30c434aed2d6b81d4ad49 (diff) | |
| download | sbotools2-f69b4389539e0b04a47bc37facdb03bdd3cd3c9b.tar.xz | |
Ensure home directory is an absolute path
Diffstat (limited to 'SBO-Lib/lib/SBO')
| -rw-r--r-- | SBO-Lib/lib/SBO/Lib/Util.pm | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/SBO-Lib/lib/SBO/Lib/Util.pm b/SBO-Lib/lib/SBO/Lib/Util.pm index 3c611b8..073ba0a 100644 --- a/SBO-Lib/lib/SBO/Lib/Util.pm +++ b/SBO-Lib/lib/SBO/Lib/Util.pm @@ -422,7 +422,11 @@ sub read_config {    } else {      warn "Unable to open $conf_file.\n" if -f $conf_file;    } +    $config{SBO_HOME} = '/usr/sbo' if $config{SBO_HOME} eq 'FALSE'; +  unless ($config{SBO_HOME} =~ qr#^(/|$)#) { +    usage_error( "The configuration parameter SBO_HOME must be an absolute path."); +  }  }  =head2 script_error | 
