vim/vim-7.3-mktemp_tutor.patch

16 lines
579 B
Diff
Raw Normal View History

2025-01-21 12:28:31 +00:00
Index: vim-9.1.0908/src/vimtutor
===================================================================
--- vim-9.1.0908.orig/src/vimtutor
+++ vim-9.1.0908/src/vimtutor
@@ -158,9 +158,8 @@ done
# We need a temp file for the copy. First try using a standard command.
-tmp="${TMPDIR-/tmp}"
# shellcheck disable=SC2186
-TUTORCOPY=$(mktemp "$tmp/tutorXXXXXX" || tempfile -p tutor || echo none)
+TUTORCOPY=$(mktemp /tmp/tutorXXXXXX || echo /tmp/tutor$$)
# If the standard commands failed then create a directory to put the copy in.
# That is a secure way to make a temp file.