* added graalvm (22.0.0.1) - A high-performance JDK distribution
[t2.git] / package / x11 / xlockmore / no-.plan.patch
blob510e3d290f86f648838d79b4eea5671f1253e663
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../xlockmore/no-.plan.patch
5 # Copyright (C) 2004 - 2006 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 We decided exposing the (maybe) slightly personal/secret .plan is a bad idea.
19 - Rene Rebe <rene@exactcode.de>
21 diff -ur xlockmore-5.14.1/xlock/xlock.c xlockmore-5.14.1-fixed/xlock/xlock.c
22 --- xlockmore-5.14.1/xlock/xlock.c 2004-11-09 23:07:06.000000000 +0100
23 +++ xlockmore-5.14.1-fixed/xlock/xlock.c 2005-01-11 16:00:32.543487472 +0100
24 @@ -2963,6 +2963,8 @@
25 (void) sprintf(buffer, "%s/%s", home, ".xlocktext");
26 #endif
27 planf = my_fopen(buffer, "r");
29 +#ifdef PLAN_WANTED /* disable .plan exposing for T2 -ReneR */
30 if (planf == NULL) {
31 #ifdef VMS
32 (void) sprintf(buffer, "%s%s", home, ".plan");
33 @@ -2971,6 +2973,7 @@
34 #endif
35 planf = my_fopen(buffer, "r");
37 +#endif /* PLAN_WANTED */
38 if (planf == NULL) {
39 #ifndef VMS
40 (void) sprintf(buffer, "%s/%s", home, ".signature");
41 diff -ur xlockmore-5.14.1/xlock/xlock.man xlockmore-5.14.1-fixed/xlock/xlock.man
42 --- xlockmore-5.14.1/xlock/xlock.man 2004-11-02 02:23:21.000000000 +0100
43 +++ xlockmore-5.14.1-fixed/xlock/xlock.man 2005-01-11 16:00:50.570746912 +0100
44 @@ -291,7 +291,7 @@
46 In the lower part of the password screen a text is displayed. This
47 message is taken from the first file of the following that exists:
48 -$HOME/.xlocktext, $HOME/.plan, or $HOME/.signature.
49 +$HOME/.xlocktext or $HOME/.signature.
51 On systems which support new BSD style authentication, the password
52 may be prefixed by an authentication style followed by a colon