1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../xlockmore/no-.plan.patch
5 # Copyright (C) 2004 - 2006 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
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
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
25 (void) sprintf(buffer, "%s/%s", home, ".xlocktext");
27 planf = my_fopen(buffer, "r");
29 +#ifdef PLAN_WANTED /* disable .plan exposing for T2 -ReneR */
32 (void) sprintf(buffer, "%s%s", home, ".plan");
35 planf = my_fopen(buffer, "r");
37 +#endif /* PLAN_WANTED */
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
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