X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=storage.sh;h=61eec88fb2cee63f706a634eaa48c85a09ef1967;hb=9a10fd447c5646456421bc7c0107bf930f3acbf8;hp=355bd569e40779602381612c36fafe6b839f418d;hpb=3283127e9544b8877250bde29ddfa5c4ec309a04;p=serve0 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