- Make location of openssl.cnf somewhat more flexible (patch by

Ville Skyttä <ville.skytta@iki.fi>)
This commit is contained in:
ianmacd 2005-01-04 22:35:41 +00:00
parent 8c08c4c00a
commit 9ec5ae465b

View File

@ -1,6 +1,6 @@
# bash_completion - some programmable completion functions for bash 2.05b
#
# $Id: bash_completion,v 1.772 2005/01/04 06:37:42 ianmacd Exp $
# $Id: bash_completion,v 1.773 2005/01/04 23:35:41 ianmacd Exp $
#
# Copyright (C) Ian Macdonald <ian@caliban.org>
#
@ -3179,6 +3179,7 @@ _openssl_sections()
local config
config=/etc/ssl/openssl.cnf
[ ! -f $config ] && config=/usr/share/ssl/openssl.cnf
for (( i=2; i < COMP_CWORD; i++ )); do
if [[ "${COMP_WORDS[i]}" == -config ]]; then
config=${COMP_WORDS[i+1]}