From a288553f1bbccef743f37264cea15d9f2739feee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Lindstr=C3=B6m?= Date: Thu, 5 Oct 2017 15:33:36 +0700 Subject: [PATCH] Use temporary file name to avoid race condition --- scripts/quitcd/quitcd.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/quitcd/quitcd.bash b/scripts/quitcd/quitcd.bash index dc83b23c..5c12ae23 100644 --- a/scripts/quitcd/quitcd.bash +++ b/scripts/quitcd/quitcd.bash @@ -1,4 +1,4 @@ -export NNN_TMPFILE="/tmp/nnn" +export NNN_TMPFILE="$(mktemp -u nnn.XXXXXXXX)" n() {