rpms/sysvinit/devel sysvinit-2.86-pidof-man.patch, NONE, 1.1 sysvinit.spec, 1.69, 1.70

Bill Nottingham notting at fedoraproject.org
Mon Dec 8 20:15:25 UTC 2008


Author: notting

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

Modified Files:
	sysvinit.spec 
Added Files:
	sysvinit-2.86-pidof-man.patch 
Log Message:
Document readlink() behavior in pidof (#201317)


sysvinit-2.86-pidof-man.patch:

--- NEW FILE sysvinit-2.86-pidof-man.patch ---
diff -up sysvinit-2.86/man/pidof.8.foo sysvinit-2.86/man/pidof.8
--- sysvinit-2.86/man/pidof.8.foo	2008-12-08 15:09:31.000000000 -0500
+++ sysvinit-2.86/man/pidof.8	2008-12-08 15:11:48.000000000 -0500
@@ -43,7 +43,11 @@ which should also be located in \fP/sbin
 When \fIpidof\fP is invoked with a full pathname to the program it
 should find the pid of, it is reasonably safe. Otherwise it is possible
 that it returns pids of running programs that happen to have the same name
-as the program you're after but are actually other programs.
+as the program you're after but are actually other programs. Note that
+that the executable name of running processes is calculated with
+.BR readlink (2),
+so symbolic links to executables will also match.
+
 .SH SEE ALSO
 .BR shutdown (8),
 .BR init (8),


Index: sysvinit.spec
===================================================================
RCS file: /cvs/extras/rpms/sysvinit/devel/sysvinit.spec,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -r1.69 -r1.70
--- sysvinit.spec	1 Oct 2008 16:39:06 -0000	1.69
+++ sysvinit.spec	8 Dec 2008 20:14:54 -0000	1.70
@@ -28,6 +28,7 @@
 Patch20: sysvinit-selinux.patch
 Patch21: sysvinit-no-abort.patch
 Patch22: 81_killall_avoid_init.dpatch
+Patch23: sysvinit-2.86-pidof-man.patch
 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Requires: pam >= 0.66-5
 Requires: filesystem >= 2.2.4-1
@@ -101,6 +102,8 @@
 %patch21 -p1 -b .no-abort
 # Make killall avoid init
 %patch22 -p1 -b .nopid1
+# Document some of the behavior of pidof. (#201317)
+%patch23 -p1 -b .pidof
 
 %build
 make %{?_smp_mflags} CC="%{__cc}" CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE" -C src
@@ -170,6 +173,9 @@
 %{_mandir}/man8/sulogin*
 
 %changelog
+* Mon Dec  8 2088 Bill Nottingham <notting at redhat.com> - 2.86-26
+- document readlink() behavior in pidof (#201317)
+
 * Wed Oct  1 2008 Bill Nottingham <notting at redhat.com> - 2.86-25
 - rediff patches (#464940)
 - remove change_console, it's no longer needed with plymouth




More information about the fedora-extras-commits mailing list