diff --git a/authd-1.4.3-valist.patch b/authd-1.4.3-valist.patch new file mode 100644 index 0000000..fe97a4c --- /dev/null +++ b/authd-1.4.3-valist.patch @@ -0,0 +1,22 @@ +diff -up authd-1.4.3/authd.c.valist authd-1.4.3/authd.c +--- authd-1.4.3/authd.c.valist 2008-05-21 14:55:30.000000000 +0200 ++++ authd-1.4.3/authd.c 2008-05-21 14:56:34.000000000 +0200 +@@ -80,13 +80,16 @@ static void log_printf(int level, const + if (opt.debug || level != LOG_DEBUG) { + va_list ap; + +- va_start(ap, s); + if (s == NULL || *s == '\0') { + s = strerror(errno); + assert(strchr(s, '%') == NULL); + } +- if (opt.log) ++ if (opt.log) { ++ va_start(ap, s); + vsyslog(level, s, ap); ++ va_end(ap); ++ } ++ va_start(ap, s); + if (vfprintf(level == LOG_INFO ? stdout : stderr, s, ap) < 0) { + perror(program_invocation_name); + level = INT_MIN; diff --git a/authd.spec b/authd.spec index 3cc5762..b302ac0 100644 --- a/authd.spec +++ b/authd.spec @@ -1,7 +1,7 @@ Summary: A RFC 1413 ident protocol daemon Name: authd Version: 1.4.3 -Release: 23%{?dist} +Release: 24%{?dist} License: GPLv2+ Group: System Environment/Daemons URL: https://fedorahosted.org/authd/ @@ -15,6 +15,7 @@ Patch2: authd-1.4.3-ipv6-mapping.patch Patch3: authd-1.4.3-locale.patch Patch4: authd-1.4.3-longopt-identifier.patch Patch5: authd-1.4.3-jiffies64.patch +Patch6: authd-1.4.3-valist.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: openssl-devel gettext Requires: xinetd @@ -33,6 +34,7 @@ of pidentd. %patch3 -p1 -b .locale %patch4 -p1 %patch5 -p1 -b .jiffies64 +%patch6 -p1 -b .valist sed -i -e "s|/etc|%{_sysconfdir}|" config.h %build @@ -55,7 +57,7 @@ touch ${RPM_BUILD_ROOT}%{_sysconfdir}/ident.key rm -rf $RPM_BUILD_ROOT %post -/usr/sbin/adduser -s /sbin/nologin -u 98 -r ident 2>/dev/null || true +/usr/sbin/adduser -s /sbin/nologin -u 98 -r -d '/' ident 2>/dev/null || true /usr/bin/openssl rand -base64 -out %{_sysconfdir}/ident.key 32 echo CHANGE THE LINE ABOVE TO A PASSPHRASE >> %{_sysconfdir}/ident.key /bin/chown ident:ident %{_sysconfdir}/ident.key @@ -73,6 +75,12 @@ service xinetd reload %{_sbindir}/in.authd %changelog +* Tue Mar 31 2009 Roman Rakus - 1.4.3-24 +- Fixed using valist with log option on. + Resolves: #446844 +- user ident has home dir set to / + Resolves: #458144 + * Mon Feb 23 2009 Fedora Release Engineering - 1.4.3-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild