[mingetty/f12/master] Open syslog with AUTPRIV facility

Petr Pisar ppisar at fedoraproject.org
Tue Oct 26 16:38:53 UTC 2010


commit 5b76616ead87819b63f380dc73d5b6d891bf333a
Author: Petr Písař <ppisar at redhat.com>
Date:   Tue Oct 26 16:57:37 2010 +0200

    Open syslog with AUTPRIV facility
    
    LOG_AUTH is deprecated in favour of LOG_AUTHPRIV. Some libc implementations
    can make trouble.

 mingetty-1.08-openlog_authpriv.patch |   14 ++++++++++++++
 mingetty.spec                        |    3 +++
 2 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/mingetty-1.08-openlog_authpriv.patch b/mingetty-1.08-openlog_authpriv.patch
new file mode 100644
index 0000000..22a46a0
--- /dev/null
+++ b/mingetty-1.08-openlog_authpriv.patch
@@ -0,0 +1,14 @@
+LOG_AUTH facility is deprecated in favor of LOG_AUTHPRIV.
+
+http://sourceforge.net/tracker/?func=detail&aid=3036068&group_id=80387&atid=559616
+--- a/mingetty.c	2008-01-18 06:13:07.000000000 -0500
++++ b/mingetty.c	2010-07-28 11:30:51.265400691 -0400
+@@ -83,7 +83,7 @@
+ 	va_list va_alist;
+ 
+ 	va_start (va_alist, fmt);
+-	openlog (progname, LOG_PID, LOG_AUTH);
++	openlog (progname, LOG_PID, LOG_AUTHPRIV);
+ 	vsyslog (LOG_ERR, fmt, va_alist);
+ 	/* no need, we exit anyway: closelog (); */
+ 	va_end (va_alist);
diff --git a/mingetty.spec b/mingetty.spec
index 75f33a7..222e505 100644
--- a/mingetty.spec
+++ b/mingetty.spec
@@ -10,6 +10,7 @@ Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
 Patch0: mingetty-1.00-opt.patch
 # Bug #635412
 Patch1: mingetty-1.08-check_chroot_chdir_nice.patch
+Patch2: mingetty-1.08-openlog_authpriv.patch
 
 %description
 The mingetty program is a lightweight, minimalist getty program for
@@ -20,6 +21,7 @@ lines (you should use the mgetty program in that case).
 %setup -q
 %patch0 -p1 -b .opt
 %patch1 -p1 -b .chroot
+%patch2 -p1 -b .openlog
 
 %build
 make "RPM_OPTS=$RPM_OPT_FLAGS"
@@ -43,6 +45,7 @@ rm -rf $RPM_BUILD_ROOT
 %changelog
 * Tue Oct 26 2010 Petr Pisar <ppisar at redhat.com> - 1.08-5
 - Check chroot(), chdir(), and nice() (bug #635412)
+- Open syslog with AUTPRIV facility
 
 * Sat Jul 25 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.08-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild


More information about the scm-commits mailing list