diff options
Diffstat (limited to 'main/arpwatch')
-rw-r--r-- | main/arpwatch/APKBUILD | 6 | ||||
-rw-r--r-- | main/arpwatch/CVE-2012-2653.patch | 12 |
2 files changed, 2 insertions, 16 deletions
diff --git a/main/arpwatch/APKBUILD b/main/arpwatch/APKBUILD index b7dab0be59..662d958059 100644 --- a/main/arpwatch/APKBUILD +++ b/main/arpwatch/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=arpwatch pkgver=2.1a15 -pkgrel=4 +pkgrel=5 pkgdesc="Ethernet monitoring program" url="http://www-nrg.ee.lbl.gov/" arch="all" @@ -12,7 +12,6 @@ makedepends="libpcap-dev" install= subpackages="" source="ftp://ftp.ee.lbl.gov/$pkgname.tar.gz - CVE-2012-2653.patch arpwatch.confd arpwatch.initd" @@ -20,7 +19,7 @@ prepare() { cd "$srcdir/$pkgname-$pkgver" for i in $source; do case $i in - *.oatch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } @@ -47,6 +46,5 @@ package() { } md5sums="cebfeb99c4a7c2a6cee2564770415fe7 arpwatch.tar.gz -af7d5a6cddca6c31fe84acd1d5209c8b CVE-2012-2653.patch dc8300ce5f02d6be95899a2982397064 arpwatch.confd 51ecada198c4f954ac4d5f5903198ebb arpwatch.initd" diff --git a/main/arpwatch/CVE-2012-2653.patch b/main/arpwatch/CVE-2012-2653.patch deleted file mode 100644 index c37b5132ed..0000000000 --- a/main/arpwatch/CVE-2012-2653.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -u arpwatch-2.1a15/arpwatch.c arpwatch-2.1a15/arpwatch.c
---- arpwatch-2.1a15/arpwatch.c
-+++ arpwatch-2.1a15/arpwatch.c
-@@ -153,7 +153,7 @@
- struct passwd* pw;
- pw = getpwnam( user );
- if ( pw ) {
-- if ( initgroups(pw->pw_name, 0) != 0 || setgid(pw->pw_gid) != 0 ||
-+ if ( initgroups(pw->pw_name, pw->pw_gid) != 0 || setgid(pw->pw_gid) != 0 ||
- setuid(pw->pw_uid) != 0 ) {
- syslog(LOG_ERR, "Couldn't change to '%.32s' uid=%d gid=%d", user,pw->pw_uid, pw->pw_gid);
- exit(1);
|