1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 22no_public_exchange.dpatch by <hesso@pool.math.tu-berlin.de>
4
## All lines beginning with `## DP:' are a description of the patch.
8
diff -Naur screen-4.0.3.orig/fileio.c screen-4.0.3/fileio.c
9
--- screen-4.0.3.orig/fileio.c 2008-06-01 23:39:49.000000000 +0200
10
+++ screen-4.0.3/fileio.c 2008-06-01 23:44:58.000000000 +0200
12
fnbuf[sizeof(fnbuf) - 1] = 0;
16
+ * I consider this 'public exchange file' feature a bad idea, at least
17
+ * if this is the default case. I really don't like the idea of an admin
18
+ * copying configuration file snippets around that might get changed
19
+ * in that buffer file.
20
+ * Drop the notion of a 'public' exchange file. If someone explictly wants
21
+ * to share his copy buffer contents, he is free to chmod it after its
23
+ * Jan Nordholz <hesso@pool.math.tu-berlin.de>, 2007/08/07
24
public = !strcmp(fn, DEFAULT_BUFFERFILE);
27
exists = !lstat(fn, &stb);
28
if (public && exists && (S_ISLNK(stb.st_mode) || stb.st_nlink > 1))