rpms/coreutils/devel coreutils-5.2.1-runuser.patch, 1.13, 1.14 coreutils.spec, 1.152, 1.153

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Tue Jan 2 13:15:41 UTC 2007


Author: twaugh

Update of /cvs/dist/rpms/coreutils/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv31702

Modified Files:
	coreutils-5.2.1-runuser.patch coreutils.spec 
Log Message:
* Tue Jan  2 2007 Tim Waugh <twaugh at redhat.com>
- Prevent 'su --help' showing runuser-only options such as --group.


coreutils-5.2.1-runuser.patch:
 AUTHORS            |    1 
 README             |    2 
 man/Makefile.am    |    3 -
 man/runuser.1      |   68 +++++++++++++++++++++++++++++++
 man/runuser.x      |    4 +
 src/Makefile.am    |    8 ++-
 src/su.c           |  116 ++++++++++++++++++++++++++++++++++++++++++++++++-----
 tests/help-version |    1 
 8 files changed, 190 insertions(+), 13 deletions(-)

Index: coreutils-5.2.1-runuser.patch
===================================================================
RCS file: /cvs/dist/rpms/coreutils/devel/coreutils-5.2.1-runuser.patch,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- coreutils-5.2.1-runuser.patch	11 Sep 2006 16:16:03 -0000	1.13
+++ coreutils-5.2.1-runuser.patch	2 Jan 2007 13:15:38 -0000	1.14
@@ -135,16 +135,7 @@
    pam_end(pamh, 0);
    if (!same_session)
      setsid ();
-@@ -647,6 +692,8 @@
- Change the effective user id and group id to that of USER.\n\
- \n\
-   -, -l, --login               make the shell a login shell\n\
-+  -g --group=group             specify the primary group\n\
-+  -G --supp-group=group        specify a supplemental group\n\
-   -c, --commmand=COMMAND       pass a single COMMAND to the shell with -c\n\
-   --session-command=COMMAND    pass a single COMMAND to the shell with -c\n\
-                                and do not create a new session\n\
-@@ -676,6 +723,12 @@
+@@ -676,6 +721,12 @@
    char *shell = NULL;
    struct passwd *pw;
    struct passwd pw_copy;
@@ -157,7 +148,7 @@
  
    initialize_main (&argc, &argv);
    program_name = argv[0];
-@@ -690,7 +743,11 @@
+@@ -690,7 +741,11 @@
    simulate_login = false;
    change_environment = true;
  
@@ -170,7 +161,7 @@
      {
        switch (optc)
  	{
-@@ -720,6 +777,28 @@
+@@ -720,6 +775,28 @@
  	  shell = optarg;
  	  break;
  
@@ -199,7 +190,7 @@
  	case_GETOPT_HELP_CHAR;
  
  	case_GETOPT_VERSION_CHAR (PROGRAM_NAME, AUTHORS);
-@@ -758,7 +837,20 @@
+@@ -758,7 +835,20 @@
  			  : DEFAULT_SHELL);
    endpwent ();
  
@@ -221,7 +212,7 @@
      {
  #ifdef SYSLOG_FAILURE
        log_su (pw, false);
-@@ -790,8 +882,16 @@
+@@ -790,8 +880,16 @@
    modify_environment (pw, shell);
  
  #ifndef USE_PAM


Index: coreutils.spec
===================================================================
RCS file: /cvs/dist/rpms/coreutils/devel/coreutils.spec,v
retrieving revision 1.152
retrieving revision 1.153
diff -u -r1.152 -r1.153
--- coreutils.spec	24 Nov 2006 18:35:26 -0000	1.152
+++ coreutils.spec	2 Jan 2007 13:15:38 -0000	1.153
@@ -285,6 +285,9 @@
 /sbin/runuser
 
 %changelog
+* Tue Jan  2 2007 Tim Waugh <twaugh at redhat.com>
+- Prevent 'su --help' showing runuser-only options such as --group.
+
 * Fri Nov 24 2006 Tim Waugh <twaugh at redhat.com> 5.97-16
 - Unbreak id (bug #217177).
 




More information about the fedora-cvs-commits mailing list