diff options
Diffstat (limited to 'community/gvmd/bin-openvas-change.patch')
-rw-r--r-- | community/gvmd/bin-openvas-change.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/community/gvmd/bin-openvas-change.patch b/community/gvmd/bin-openvas-change.patch new file mode 100644 index 0000000000..4ae7bb4f5a --- /dev/null +++ b/community/gvmd/bin-openvas-change.patch @@ -0,0 +1,19 @@ +diff --git a/tools/gvm-portnames-update.in b/tools/gvm-portnames-update.in +index ab49349..b2889ee 100644 +--- a/tools/gvm-portnames-update.in ++++ b/tools/gvm-portnames-update.in +@@ -49,12 +49,12 @@ fi + + # Configure DB_DIR where our DB is located. + if [ -z "$DB_DIR" ]; then +- OPENVASSD=`which openvassd` ++ OPENVASSD=`which openvas` + if [ -z "$OPENVASSD" ] ; then + echo "[e] Error: openvassd is not in the path, could not determine the Manager directory." + exit 1 + else +- OV_DIR=`openvassd -s | awk -F" = " '/^plugins_folder/ { print $2 }' | sed -s 's/\(^.*\)\/plugins/\1/'` ++ OV_DIR=`openvas -s | awk -F" = " '/^plugins_folder/ { print $2 }' | sed -s 's/\(^.*\)\/plugins/\1/'` + fi + DB_DIR="$OV_DIR/gvmd" + fi |