From 8be65ce87fa07416c4d923cdc358ad885e49aaf7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Tue, 27 Jul 2021 00:55:39 +0200 Subject: [PATCH] bugfix: faulty check in update and append --- storage.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storage.sh b/storage.sh index 355bd56..61eec88 100755 --- a/storage.sh +++ b/storage.sh @@ -161,7 +161,7 @@ DBM() { update|replace) k="$1" key="$(STRING "$1")" value="$(STRING "$2")" LOCK "$file" || return 1 - if ! DBM check "$k"; then + if ! DBM "$file" check "$k"; then RELEASE "$file" return 1 fi @@ -178,7 +178,7 @@ DBM() { append) key="$(STRING "$1")" value="$(STRING "$2")" LOCK "$file" || return 1 - if ! DBM check "$1"; then + if ! DBM "$file" check "$1"; then RELEASE "$file" return 1 fi -- 2.39.2