diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-09-05 16:32:08 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-09-05 16:32:08 +0000 |
commit | 0cd6b9181c976a2aaec62cd0297d3a6d13a11d40 (patch) | |
tree | 4fc410a21815b7faa97fdefd40442c9d1197d004 /net-misc/fakeidentd | |
parent | Version bumped. (diff) | |
download | historical-0cd6b9181c976a2aaec62cd0297d3a6d13a11d40.tar.gz historical-0cd6b9181c976a2aaec62cd0297d3a6d13a11d40.tar.bz2 historical-0cd6b9181c976a2aaec62cd0297d3a6d13a11d40.zip |
make sure memory is zero-ed out
Diffstat (limited to 'net-misc/fakeidentd')
-rw-r--r-- | net-misc/fakeidentd/ChangeLog | 7 | ||||
-rw-r--r-- | net-misc/fakeidentd/fakeidentd-2.0-r1.ebuild (renamed from net-misc/fakeidentd/fakeidentd-2.0.ebuild) | 15 | ||||
-rw-r--r-- | net-misc/fakeidentd/files/2.0-memset.patch | 10 | ||||
-rw-r--r-- | net-misc/fakeidentd/files/digest-fakeidentd-2.0-r1 (renamed from net-misc/fakeidentd/files/digest-fakeidentd-2.0) | 0 |
4 files changed, 26 insertions, 6 deletions
diff --git a/net-misc/fakeidentd/ChangeLog b/net-misc/fakeidentd/ChangeLog index 600fa8639e4b..384c1e4178e4 100644 --- a/net-misc/fakeidentd/ChangeLog +++ b/net-misc/fakeidentd/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-misc/fakeidentd # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/fakeidentd/ChangeLog,v 1.13 2003/06/17 13:37:59 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/fakeidentd/ChangeLog,v 1.14 2003/09/05 16:32:08 vapier Exp $ + +*fakeidentd-2.0-r1 (05 Sep 2003) + + 05 Sep 2003; Mike Frysinger <vapier@gentoo.org> : + Add patch to make sure memory is zeroed out. *fakeidentd-2.0 (17 Jun 2003) diff --git a/net-misc/fakeidentd/fakeidentd-2.0.ebuild b/net-misc/fakeidentd/fakeidentd-2.0-r1.ebuild index 64383f13dab3..dd2b1e4c9293 100644 --- a/net-misc/fakeidentd/fakeidentd-2.0.ebuild +++ b/net-misc/fakeidentd/fakeidentd-2.0-r1.ebuild @@ -1,6 +1,8 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/fakeidentd/fakeidentd-2.0.ebuild,v 1.1 2003/06/17 13:37:59 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/fakeidentd/fakeidentd-2.0-r1.ebuild,v 1.1 2003/09/05 16:32:08 vapier Exp $ + +inherit gcc DESCRIPTION="A static, secure identd. One source file only!" HOMEPAGE="http://www.guru-group.fi/~too/sw/" @@ -14,11 +16,14 @@ DEPEND="virtual/glibc" S=${WORKDIR} +src_unpack() { + unpack ${A} + epatch ${FILESDIR}/${PV}-memset.patch + sed -i "s:identd.pid:${PN}.pid:" identd.c +} + src_compile() { - cp identd.c{,.old} - sed -e "s:identd.pid:${PN}.pid:" \ - identd.c.old > identd.c - gcc identd.c -o ${PN} ${CFLAGS} || die + $(gcc-getCC) identd.c -o ${PN} ${CFLAGS} || die } src_install() { diff --git a/net-misc/fakeidentd/files/2.0-memset.patch b/net-misc/fakeidentd/files/2.0-memset.patch new file mode 100644 index 000000000000..d39ac7ec0c71 --- /dev/null +++ b/net-misc/fakeidentd/files/2.0-memset.patch @@ -0,0 +1,10 @@ +--- identd.c.orig 2003-09-05 12:25:39.922527448 -0400 ++++ identd.c 2003-09-05 12:26:02.019168248 -0400 +@@ -431,6 +431,7 @@ + return; + + /* we don't use snprintf() here since it is not so portable...*/ ++ memset(buf, '\0', 24); + sprintf(buf, "%d\n", getpid()); + assert(buf[23] == '\0'); + write(fd, buf, strlen(buf)); diff --git a/net-misc/fakeidentd/files/digest-fakeidentd-2.0 b/net-misc/fakeidentd/files/digest-fakeidentd-2.0-r1 index 2abb906f4a19..2abb906f4a19 100644 --- a/net-misc/fakeidentd/files/digest-fakeidentd-2.0 +++ b/net-misc/fakeidentd/files/digest-fakeidentd-2.0-r1 |