/[pkgs]/devel/coreutils/coreutils-split-pam.patch
ViewVC logotype

Contents of /devel/coreutils/coreutils-split-pam.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download) (as text)
Fri Jan 25 17:48:11 2008 UTC (21 months, 4 weeks ago) by ovasik
Branch: MAIN
CVS Tags: coreutils-6_10-18_fc9, coreutils-6_10-7_fc9, coreutils-6_12-12_fc10, coreutils-7_4-2_fc12, coreutils-7_0-7_fc11, coreutils-6_12-17_fc10, coreutils-7_4-3_fc12, coreutils-6_10-12_fc9, coreutils-7_1-7_fc11, coreutils-7_4-6_fc12, coreutils-7_0-3_fc11, coreutils-7_2-2_fc12, coreutils-7_0-6_fc11, coreutils-6_12-1_fc10, coreutils-7_6-4_fc12, coreutils-6_11-2_fc10, coreutils-6_12-10_fc10, coreutils-7_5-5_fc12, coreutils-7_6-5_fc12, coreutils-6_10-1_fc9, coreutils-6_11-1_fc10, coreutils-6_10-17_fc9, coreutils-7_5-2_fc12, coreutils-7_6-7_fc13, coreutils-6_10-2_fc9, F-11-split, F-9-split, coreutils-6_12-9_fc10, coreutils-6_10-10_fc9, coreutils-7_5-4_fc12, coreutils-7_0-1_fc11, coreutils-7_6-2_fc12, coreutils-7_0-4_fc11, coreutils-6_10-21_fc9, coreutils-8_0-1_fc13, coreutils-6_10-4_fc9, F-12-split, coreutils-6_12-4_fc10, coreutils-6_10-5_fc9, coreutils-7_2-3_fc12, coreutils-7_6-3_fc12, coreutils-6_10-3_fc9, coreutils-6_11-4_fc10, coreutils-7_1-2_fc11, coreutils-7_0-5_fc11, coreutils-6_10-14_fc9, coreutils-6_10-16_fc9, coreutils-7_4-5_fc12, coreutils-7_0-2_fc11, coreutils-8_0-2_fc13, coreutils-7_5-6_fc12, coreutils-6_12-5_fc10, coreutils-6_10-9_fc9, coreutils-7_1-6_fc11, coreutils-7_1-5_fc11, coreutils-7_6-6_fc13, coreutils-7_6-6_fc12, coreutils-6_12-6_fc10, coreutils-6_10-8_fc9, coreutils-7_5-3_fc12, coreutils-6_12-14_fc10, coreutils-7_1-3_fc11, coreutils-6_12-16_fc10, coreutils-6_10-20_fc9, coreutils-7_5-1_fc12, coreutils-6_12-8_fc10, coreutils-6_10-6_fc9, coreutils-6_10-19_fc9, coreutils-6_10-13_fc9, coreutils-6_12-11_fc10, coreutils-6_11-3_fc10, coreutils-6_12-13_fc10, coreutils-7_2-1_fc11, coreutils-7_6-1_fc12, F-10-split, coreutils-6_12-15_fc10, coreutils-6_10-15_fc9, coreutils-7_4-1_fc12, coreutils-6_10-11_fc9, coreutils-6_12-7_fc10, coreutils-7_1-4_fc11, coreutils-7_0-8_fc11, coreutils-6_12-2_fc10, coreutils-7_1-1_fc11, coreutils-6_12-3_fc10, coreutils-7_4-4_fc12, HEAD
Changes since 1.1: +27 -0 lines
File MIME type: text/x-patch
New upstream release 6.10, for more details see changelog
1 diff -uNrp -x '*~' coreutils-5.97-orig/src/su.c coreutils-5.97/src/su.c
2 --- coreutils-5.97-orig/src/su.c 2006-07-13 12:14:40.000000000 +0100
3 +++ coreutils-5.97/src/su.c 2006-07-13 12:24:33.000000000 +0100
4 @@ -131,11 +131,15 @@
5
6 #include "error.h"
7
8 -/* The official name of this program (e.g., no `g' prefix). */
9 +/* The official name of this program (e.g., no `g' prefix).
10 + * - Add a "-l" to the name passed to PAM if this is a login simulation
11 + */
12 #ifndef RUNUSER
13 #define PROGRAM_NAME "su"
14 +#define PROGRAM_NAME_L "su-l"
15 #else
16 #define PROGRAM_NAME "runuser"
17 +#define PROGRAM_NAME_L "runuser-l"
18 #endif
19
20 #ifndef AUTHORS
21 @@ -310,7 +314,8 @@ correct_password (const struct passwd *p
22 #ifdef USE_PAM
23 struct passwd *caller;
24 char *tty_name, *ttyn;
25 - retval = pam_start(PROGRAM_NAME, pw->pw_name, &conv, &pamh);
26 + retval = pam_start(simulate_login ? PROGRAM_NAME_L : PROGRAM_NAME,
27 + pw->pw_name, &conv, &pamh);
28 PAM_BAIL_P;
29
30 #ifndef RUNUSER
31 diff -urp coreutils-6.10-orig/doc/coreutils.info coreutils-6.10/doc/coreutils.info
32 --- coreutils-6.10-orig/doc/coreutils.info 2008-01-22 00:32:44.000000000 +0100
33 +++ coreutils-6.10/doc/coreutils.info 2008-01-24 17:17:04.000000000 +0100
34 @@ -11006,7 +11006,8 @@ options::.
35 set, even for the super-user, as described above), and set `PATH'
36 to a compiled-in default value. Change to USER's home directory.
37 Prepend `-' to the shell's name, intended to make it read its
38 - login startup file(s).
39 + login startup file(s). When this option is given, /etc/pam.d/su-l
40 + PAM file is used instead of the default one.
41
42 `-m'
43 `-p'
44 diff -urp coreutils-6.10-orig/doc/coreutils.texi coreutils-6.10/doc/coreutils.texi
45 --- coreutils-6.10-orig/doc/coreutils.texi 2008-01-24 16:50:57.000000000 +0100
46 +++ coreutils-6.10/doc/coreutils.texi 2008-01-24 17:12:58.000000000 +0100
47 @@ -13670,7 +13670,9 @@ the exit status of @var{command} otherwi
48
49 @command{su} allows one user to temporarily become another user. It runs a
50 command (often an interactive shell) with the real and effective user
51 -ID, group ID, and supplemental groups of a given @var{user}. Synopsis:
52 +ID, group ID, and supplemental groups of a given @var{user}. When the -l
53 +option is given, the su-l PAM file is used instead of the default su PAM file.
54 +Synopsis:
55
56 @example
57 su [@var{option}]@dots{} [@var{user} [@var{arg}]@dots{}]

admin@fedoraproject.org
ViewVC Help
Powered by ViewVC 1.1.2