From 7d39c91e6486e1d355ecc00278e68567a114c2f9 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Fri, 8 Nov 2019 18:21:16 +0100 Subject: [PATCH] fix: [sftp] ensure that cache won't be used with a different version of the function --- sftp/lib/common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sftp/lib/common b/sftp/lib/common index 7610908..ee96789 100644 --- a/sftp/lib/common +++ b/sftp/lib/common @@ -2,7 +2,7 @@ make_build_script() { - local users_def="$1" cache_file="$CACHEDIR/$FUNCNAME.cache.$(p0 "$@" | md5_compat)" + local users_def="$1" cache_file="$CACHEDIR/$FUNCNAME.cache.$(p0 "$@" "$(declare -f "$FUNCNAME")" | md5_compat)" if [ -e "$cache_file" ]; then #debug "$FUNCNAME: STATIC cache hit" cat "$cache_file" &&