[man-pages] - resolves: #681781 snprintf man page is wrong

Ivana Varekova varekova at fedoraproject.org
Fri Mar 25 10:56:09 UTC 2011


commit 006d98105df5a1d124f9a059dbdea95ac078e57d
Author: Ivana Hutarova Varekova <varekova at redhat.com>
Date:   Fri Mar 25 13:07:37 2011 +0100

    - resolves: #681781
      snprintf man page is wrong

 man-pages-3.32-snprintf.patch |   17 +++++++++++++++++
 man-pages.spec                |    9 ++++++++-
 2 files changed, 25 insertions(+), 1 deletions(-)
---
diff --git a/man-pages-3.32-snprintf.patch b/man-pages-3.32-snprintf.patch
new file mode 100644
index 0000000..917524b
--- /dev/null
+++ b/man-pages-3.32-snprintf.patch
@@ -0,0 +1,17 @@
+diff -up man-pages-3.32/man3/printf.3.pom man-pages-3.32/man3/printf.3
+--- man-pages-3.32/man3/printf.3.pom	2011-03-25 11:12:33.000000000 +0100
++++ man-pages-3.32/man3/printf.3	2011-03-25 12:31:17.000000000 +0100
+@@ -108,7 +108,11 @@ write at most
+ bytes (including the trailing null byte (\(aq\e0\(aq)) to
+ .IR str .
+ .PP
+-The trailing null byte won't be added to str, if the string is truncated.
++The trailing null byte is added to 
++.IR str ,
++unless
++.IR size
++is zero.
+ The functions
+ .BR vprintf (),
+ .BR vfprintf (),
+diff -up man-pages-3.32/man3/snprintf.3.pom man-pages-3.32/man3/snprintf.3
diff --git a/man-pages.spec b/man-pages.spec
index 49eda31..f468db2 100644
--- a/man-pages.spec
+++ b/man-pages.spec
@@ -4,7 +4,7 @@
 Summary: Man (manual) pages from the Linux Documentation Project
 Name: man-pages
 Version: 3.32
-Release: 10%{?dist}
+Release: 11%{?dist}
 License: GPLv2+ and GPL+ and BSD and MIT and Copyright only and IEEE
 Group: Documentation
 URL: http://www.kernel.org/pub/linux/docs/manpages/
@@ -42,6 +42,8 @@ Patch77: man-pages-3.32-readdir.patch
 Patch78: man-pages-2.39-gai.conf.patch
 #Resolves: #675544
 Patch79: man-pages-3.32-spellch.patch
+#resolves: #681781
+Patch80: man-pages-3.32-snprintf.patch
 #Resolves: #655961
 Conflicts: quota < 3.17-14
 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -81,6 +83,7 @@ rmdir man-pages-posix-%{posix_version}-%{posix_release}
 %patch77 -p1
 %patch78 -p1
 %patch79 -p1
+%patch80 -p1
 
 ### And now remove those we are not going to use:
 
@@ -136,6 +139,10 @@ rm -rf $RPM_BUILD_ROOT
 %lang(en) %{_mandir}/en/man*/*
 
 %changelog
+* Fri Mar 25 2011 Ivana Hutarova Varekova <varekova at redhat.com> - 3.32-11
+- resolves: #681781
+  snprintf man page is wrong
+
 * Wed Mar  9 2011 Ivana Hutarova Varekova <varekova at redhat.com> - 3.32-10
 - resolves: #675544
   perfmonctl(2) typo manpage fix


More information about the scm-commits mailing list