summary refs log tree commit diff
path: root/gnu/packages/patches/nvi-assume-preserve-path.patch
blob: 18a8f68cca3079019ae16c3873fb87291a95b825 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Make configure assume nvi can store backups in /var/tmp.

--- a/dist/configure	2014-09-01 14:46:01.075778095 +0200
+++ b/dist/configure	2014-09-01 14:52:08.411790122 +0200
@@ -21319,23 +21319,8 @@
 if test "${vi_cv_path_preserve+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
-  	dirlist="/var/preserve /var/tmp /usr/tmp"
-	vi_cv_path_preserve=no
-	for i in $dirlist; do
-		if test -d $i/vi.recover; then
-			vi_cv_path_preserve=$i/vi.recover
-			break;
-		fi
-	done
-	if test "$vi_cv_path_preserve" = no; then
-		for i in $dirlist; do
-			if test -d $i -a -w $i; then
-				vi_cv_path_preserve=$i/vi.recover
-				break;
-			fi
-		done
-
-	fi
+#	Assume /var/tmp
+	vi_cv_path_preserve=/var/tmp/vi.recover
 fi
 
 if test "$vi_cv_path_preserve" = no; then