The DIMM security test confuses "tmp" and "tpm" in multiple places. It
saves the current tpm.handle file to tmp.handle.bak and tries to restore
it from tmp.handle.bak to tmp.handle. Replace all occurrences of "tmp"
with "tpm".

Cc: Dave Jiang <[email protected]>
Signed-off-by: Dan Williams <[email protected]>
---
 test/security.sh |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/security.sh b/test/security.sh
index 771135b7ab18..8e2d870c0d43 100755
--- a/test/security.sh
+++ b/test/security.sh
@@ -39,7 +39,7 @@ setup_keys()
                backup_key=1
        fi
        if [ -f "$keypath/tpm.handle" ]; then
-               mv "$keypath/tpm.handle" "$keypath/tmp.handle.bak"
+               mv "$keypath/tpm.handle" "$keypath/tpm.handle.bak"
                backup_handle=1
        fi
 
@@ -71,7 +71,7 @@ post_cleanup()
                mv "$masterpath.bak" "$masterpath"
        fi
        if [ "$backup_handle" -eq 1 ]; then
-               mv "$keypath/tpm.handle.bak" "$keypath/tmp.handle"
+               mv "$keypath/tpm.handle.bak" "$keypath/tpm.handle"
        fi
 }
 
_______________________________________________
Linux-nvdimm mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to