[arch-commits] Commit in syslog-ng/trunk (PKGBUILD uid.patch)

Tobias Powalowski tpowa at archlinux.org
Fri Mar 13 06:39:18 UTC 2009


    Date: Friday, March 13, 2009 @ 02:39:18
  Author: tpowa
Revision: 29890

upgpkg: syslog-ng 3.0.1-6

Added:
  syslog-ng/trunk/uid.patch
Modified:
  syslog-ng/trunk/PKGBUILD

-----------+
 PKGBUILD  |   10 ++++------
 uid.patch |   11 +++++++++++
 2 files changed, 15 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-03-13 06:30:20 UTC (rev 29889)
+++ PKGBUILD	2009-03-13 06:39:18 UTC (rev 29890)
@@ -4,7 +4,7 @@
 
 pkgname=syslog-ng
 pkgver=3.0.1
-pkgrel=5
+pkgrel=6
 pkgdesc="Next-generation syslogd with advanced networking and filtering capabilities"
 arch=(i686 x86_64)
 license=('GPL')
@@ -16,15 +16,13 @@
 provides=('logger')
 backup=('etc/syslog-ng.conf' 'etc/logrotate.d/syslog-ng')
 source=(http://www.balabit.com/downloads/files/syslog-ng/sources/$pkgver/source/$pkgname\_$pkgver.tar.gz
-        syslog-ng.conf syslog-ng.logrotate syslog-ng.rc)
+        syslog-ng.conf syslog-ng.logrotate syslog-ng.rc uid.patch)
 install=syslog-ng.install
-md5sums=('14e13519bad47d0a6308905292385321'
-         'c42c6b19bfe784e41c1d4f99c9e7d600'
-         '9714c7479119922b55a7992677ebecb5'
-         '9bd98250cfa49e13fa3fa731b6040549')
 
 build() {
     cd $srcdir/$pkgname-$pkgver
+    # fix http://bugs.archlinux.org/task/13760
+    patch -Np0 -i ../uid.patch || return 1
     ./configure --prefix=/usr \
                 --sysconfdir=/etc \
                 --localstatedir=/var/lib/syslog-ng \

Added: uid.patch
===================================================================
--- uid.patch	                        (rev 0)
+++ uid.patch	2009-03-13 06:39:18 UTC (rev 29890)
@@ -0,0 +1,11 @@
+--- src/misc.c~	2009-03-13 07:33:56.000000000 +0100
++++ src/misc.c	2009-03-13 07:33:56.000000000 +0100
+@@ -274,7 +274,7 @@
+   struct passwd *pw;
+ 
+   *uid = 0;
+-  if (*user)
++  if (!*user)
+     return FALSE;
+     
+   pw = getpwnam(user);




More information about the arch-commits mailing list