~ubuntu-branches/ubuntu/trusty/screen/trusty-backports

« back to all changes in this revision

Viewing changes to debian/patches/22no_public_exchange.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Jan Christoph Nordholz
  • Date: 2008-06-12 19:33:30 UTC
  • mfrom: (1.1.13 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080612193330-1tt3qhpxonbgdmq2
Tags: 4.0.3-11
* Unbreak <End> and <^A Bksp> using a patch from Loïc Minier
  (thanks!) - introduced as new 45suppress_remap.dpatch.
  Closes: #484647.
* Bump Standards version to 3.8.0. No changes necessary.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh /usr/share/dpatch/dpatch-run
 
2
## 22no_public_exchange.dpatch by  <hesso@pool.math.tu-berlin.de>
 
3
##
 
4
## All lines beginning with `## DP:' are a description of the patch.
 
5
## DP: No description.
 
6
 
 
7
@DPATCH@
 
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
 
11
@@ -414,7 +414,17 @@
 
12
          fnbuf[sizeof(fnbuf) - 1] = 0;
 
13
          fn = fnbuf;
 
14
        }
 
15
+/**
 
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
 
22
+ * creation.
 
23
+ * Jan Nordholz <hesso@pool.math.tu-berlin.de>, 2007/08/07
 
24
       public = !strcmp(fn, DEFAULT_BUFFERFILE);
 
25
+ */
 
26
 # ifdef HAVE_LSTAT
 
27
       exists = !lstat(fn, &stb);
 
28
       if (public && exists && (S_ISLNK(stb.st_mode) || stb.st_nlink > 1))