[man-pages/f17] - resolves: #837090 updated example on inet(3) man page - use fprintf(stderr, ..) instead of perror

pschiffe pschiffe at fedoraproject.org
Thu Sep 20 09:31:07 UTC 2012


commit 1f7bd1773ca75adba3a2bcb935d17ff16e2c2363
Author: Peter Schiffer <pschiffe at redhat.com>
Date:   Thu Sep 20 11:11:10 2012 +0200

    - resolves: #837090
      updated example on inet(3) man page - use fprintf(stderr,..) instead of perror

 man-pages-3.35-inet.patch |   12 ++++++++++++
 man-pages.spec            |    9 ++++++++-
 2 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/man-pages-3.35-inet.patch b/man-pages-3.35-inet.patch
new file mode 100644
index 0000000..c35ce47
--- /dev/null
+++ b/man-pages-3.35-inet.patch
@@ -0,0 +1,12 @@
+diff -ur man-pages-3.42.orig/man3/inet.3 man-pages-3.42/man3/inet.3
+--- man-pages-3.42.orig/man3/inet.3	2012-08-14 00:39:38.000000000 +0200
++++ man-pages-3.42/man3/inet.3	2012-09-12 12:35:46.908363695 +0200
+@@ -286,7 +286,7 @@
+     }
+ 
+     if (inet_aton(argv[1], &addr) == 0) {
+-        perror("inet_aton");
++        fprintf(stderr, "Invalid address\\n");
+         exit(EXIT_FAILURE);
+     }
+ 
diff --git a/man-pages.spec b/man-pages.spec
index 0c5c15d..cf084ae 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.35
-Release: 2%{?dist}
+Release: 3%{?dist}
 License: GPLv2+ and GPL+ and BSD and MIT and Copyright only and IEEE
 Group: Documentation
 URL: http://man7.org/linux/man-pages/
@@ -51,6 +51,8 @@ Patch82: man-pages-3.32-host.patch
 Patch83: man-pages-3.23-proc_cgroups.patch
 #resolves: #723578
 Patch84: man-pages-3.35-readlink3p.patch
+#resolves: #837090
+Patch85: man-pages-3.35-inet.patch
 #Resolves: #655961
 Conflicts: quota < 3.17-14
 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -94,6 +96,7 @@ rmdir man-pages-posix-%{posix_version}-%{posix_release}
 %patch82 -p1
 %patch83 -p1
 %patch84 -p1
+%patch85 -p1
 
 ### And now remove those we are not going to use:
 
@@ -149,6 +152,10 @@ rm -rf $RPM_BUILD_ROOT
 %lang(en) %{_mandir}/en/man*/*
 
 %changelog
+* Thu Sep 20 2012 Peter Schiffer <pschiffe at redhat.com> - 3.35-3
+- resolves: #837090
+  updated example on inet(3) man page - use fprintf(stderr,..) instead of perror
+
 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.35-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 


More information about the scm-commits mailing list