From 2d753395289340e245be67688e431a26a140ee88 Mon Sep 17 00:00:00 2001 From: chrfranke <chrfranke@4ea69e1a-61f1-4043-bf83-b5c94c648137> Date: Wed, 2 Feb 2022 17:54:24 +0000 Subject: [PATCH] update-smart-drivedb.in: Fix regexp quoting. git-svn-id: https://svn.code.sf.net/p/smartmontools/code/trunk@5315 4ea69e1a-61f1-4043-bf83-b5c94c648137 --- smartmontools/ChangeLog | 2 ++ smartmontools/update-smart-drivedb.in | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/smartmontools/ChangeLog b/smartmontools/ChangeLog index 4a188a7d8..9ffbecf3b 100644 --- a/smartmontools/ChangeLog +++ b/smartmontools/ChangeLog @@ -2,6 +2,8 @@ $Id$ 2022-02-02 Christian Franke <franke@computer.org> + update-smart-drivedb.in: Fix regexp quoting. + os_linux.cpp: Enhance device scan range to '/dev/sdzz'. smartd.8.in: Update related documentation. diff --git a/smartmontools/update-smart-drivedb.in b/smartmontools/update-smart-drivedb.in index 68eb26b09..f70650b50 100644 --- a/smartmontools/update-smart-drivedb.in +++ b/smartmontools/update-smart-drivedb.in @@ -4,7 +4,7 @@ # # Home page of code is: https://www.smartmontools.org # -# Copyright (C) 2010-21 Christian Franke +# Copyright (C) 2010-22 Christian Franke # # SPDX-License-Identifier: GPL-2.0-or-later # @@ -538,7 +538,7 @@ get_db_version() v=${x%% *} test -n "$v" || return 0 if [ "${v%/*}" = "$v" ]; then # trunk: get rev from expanded SVN-Id - r=$(echo "$x" | sed -n 's,^[^$]*$Id: drivedb\.h \([1-9][0-9]*\) .*$,\1,p') + r=$(echo "$x" | sed -n 's,^[^$]*\$''Id: drivedb\.h \([1-9][0-9]*\) .*$,\1,p') test -n "$r" || r="?" v="$v/$r" fi -- GitLab