rpms/coreutils/devel coreutils-5.2.1-runuser.patch, 1.27, 1.28 coreutils.spec, 1.278, 1.279

Ondrej Vasik ovasik at fedoraproject.org
Tue Sep 22 13:24:03 UTC 2009


Author: ovasik

Update of /cvs/extras/rpms/coreutils/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv30019

Modified Files:
	coreutils-5.2.1-runuser.patch coreutils.spec 
Log Message:
improve and correct runuser documentation (#524805)

coreutils-5.2.1-runuser.patch:
 coreutils-7.0/AUTHORS                 |    1 
 coreutils-7.0/README                  |    8 -
 coreutils-7.0/man/Makefile.am         |    1 
 coreutils-7.0/man/runuser.x           |   12 ++
 coreutils-7.0/src/Makefile.am         |    8 +
 coreutils-7.0/src/su.c                |  139 +++++++++++++++++++++++++++++++---
 coreutils-7.5/tests/misc/help-version |    1 
 coreutils-7.6/man/help2man            |    3 
 8 files changed, 158 insertions(+), 15 deletions(-)

Index: coreutils-5.2.1-runuser.patch
===================================================================
RCS file: /cvs/extras/rpms/coreutils/devel/coreutils-5.2.1-runuser.patch,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -p -r1.27 -r1.28
--- coreutils-5.2.1-runuser.patch	12 Sep 2009 09:28:48 -0000	1.27
+++ coreutils-5.2.1-runuser.patch	22 Sep 2009 13:24:02 -0000	1.28
@@ -32,9 +32,9 @@ diff -urNp coreutils-7.0.orig/man/runuse
 +.TP
 +More detailed Texinfo documentation could be found by command
 +.TP
-+\t\fBinfo su invocation\fR\t
++\t\fBinfo coreutils \(aqsu invocation\(aq\fR\t
 +.TP
-+since the command \fBrunuser\fR is trimmed down version of command \fBrunuser\fR.
++since the command \fBrunuser\fR is trimmed down version of command \fBsu\fR.
 +.br
 diff -urNp coreutils-7.0.orig/README coreutils-7.0/README
 --- coreutils-7.0.orig/README	2008-08-24 22:30:10.000000000 +0200
@@ -224,16 +224,18 @@ diff -urNp coreutils-7.0.orig/src/su.c c
    pam_end(pamh, 0);
    if (!same_session)
      setsid ();
-@@ -620,6 +665,26 @@ usage (int status)
+@@ -620,6 +665,28 @@ usage (int status)
    else
      {
        printf (_("Usage: %s [OPTION]... [-] [USER [ARG]...]\n"), program_name);
 +#ifdef RUNUSER
-+      fputs (_("\
-+Change the effective user id and group id to that of USER.  No PAM hooks\n\
-+are run, and there will be no password prompt.  This command is useful\n\
++      printf (_("\
++Change the effective user id and group id to that of USER.  Only session PAM\n\
++hooks are run, and there is no password prompt.  This command is useful only\n\
 +when run as the root user.  If run as a non-root user without privilege\n\
-+to set user ID, the command will fail.\n\
++to set user ID, the command will fail as the binary is not setuid.\n\
++As %s doesn't run auth and account PAM hooks, it runs with lower overhead\n\
++than su.\n\
 +\n\
 +  -, -l, --login               make the shell a login shell, uses runuser-l\n\
 +                               PAM file instead of default one\n\
@@ -246,7 +248,7 @@ diff -urNp coreutils-7.0.orig/src/su.c c
 +  -m, --preserve-environment   do not reset environment variables\n\
 +  -p                           same as -m\n\
 +  -s, --shell=SHELL            run SHELL if /etc/shells allows it\n\
-+"), stdout);
++"), program_name);
 +#else
        fputs (_("\
  Change the effective user id and group id to that of USER.\n\
@@ -366,3 +368,16 @@ diff -urNp coreutils-7.5.orig/tests/misc
  timeout_args=--version
  
  # I'd rather not run sync, since it spins up disks that I've
+diff -urNp coreutils-7.6-orig/man/help2man coreutils-7.6/man/help2man
+--- coreutils-7.6-orig/man/help2man	2009-09-01 13:01:16.000000000 +0200
++++ coreutils-7.6/man/help2man	2009-09-22 15:15:01.000000000 +0200
+@@ -550,6 +550,9 @@ while (length)
+     $include{$sect} .= $content;
+ }
+ 
++# There is no info documentation for runuser (shared with su).
++$opt_no_info = 1 if $program eq 'runuser';
++
+ # Refer to the real documentation.
+ unless ($opt_no_info)
+ {


Index: coreutils.spec
===================================================================
RCS file: /cvs/extras/rpms/coreutils/devel/coreutils.spec,v
retrieving revision 1.278
retrieving revision 1.279
diff -u -p -r1.278 -r1.279
--- coreutils.spec	21 Sep 2009 06:08:13 -0000	1.278
+++ coreutils.spec	22 Sep 2009 13:24:02 -0000	1.279
@@ -1,7 +1,7 @@
 Summary: A set of basic GNU tools commonly used in shell scripts
 Name:    coreutils
 Version: 7.6
-Release: 4%{?dist}
+Release: 5%{?dist}
 License: GPLv3+
 Group:   System Environment/Base
 Url:     http://www.gnu.org/software/coreutils/
@@ -329,6 +329,9 @@ fi
 %{_libdir}/coreutils
 
 %changelog
+* Tue Sep 22 2009 Ondrej Vasik <ovasik at redhat.com> - 7.6-5
+- improve and correct runuser documentation (#524805)
+
 * Mon Sep 21 2009 Ondrej Vasik <ovasik at redhat.com> - 7.6-4
 - add dircolors color for GNU lzip (#516897)
 




More information about the scm-commits mailing list