On Mon, May 16, 2011 at 12:55:20PM -0400, Jon Ringle wrote: > Added patch and series > > Signed-off-by: Jon Ringle <[email protected]> > --- > .../0001-replace-bzero-with-memset.patch | 26 > ++++++++++++++++++++ > patches/dropbear-0.52/series | 1 + > 2 files changed, 27 insertions(+), 0 deletions(-) > create mode 100644 patches/dropbear-0.52/0001-replace-bzero-with-memset.patch > create mode 100644 patches/dropbear-0.52/series > > diff --git a/patches/dropbear-0.52/0001-replace-bzero-with-memset.patch > b/patches/dropbear-0.52/0001-replace-bzero-with-memset.patch > new file mode 100644 > index 0000000..2a41cfe > --- /dev/null > +++ b/patches/dropbear-0.52/0001-replace-bzero-with-memset.patch > @@ -0,0 +1,26 @@ > +From 30d685c42cda04cf36dbadd5b453d4c50a7de64c Mon Sep 17 00:00:00 2001 > +From: Jon Ringle <[email protected]> > +Date: Tue, 26 Apr 2011 03:11:49 -0400 > +Subject: [PATCH] replace bzero with memset > +
please add a comment, that bzero is deprecated. You need this to build with uclibc, right? Add a comment for that too. Otherwise someone might remove the patch because it doesn't seem necessary. Michael > +Signed-off-by: Jon Ringle <[email protected]> > +--- > + svr-main.c | 2 +- > + 1 files changed, 1 insertions(+), 1 deletions(-) > + > +diff --git a/svr-main.c b/svr-main.c > +index 8d57084..484d186 100644 > +--- a/svr-main.c > ++++ b/svr-main.c > +@@ -133,7 +133,7 @@ void main_noinetd() { > + for (i = 0; i < MAX_UNAUTH_CLIENTS; i++) { > + childpipes[i] = -1; > + } > +- bzero(preauth_addrs, sizeof(preauth_addrs)); > ++ memset(preauth_addrs, 0, sizeof(preauth_addrs)); > + > + /* Set up the listening sockets */ > + listensockcount = listensockets(listensocks, MAX_LISTEN_ADDR, &maxsock); > +-- > +1.7.0.4 > + > diff --git a/patches/dropbear-0.52/series b/patches/dropbear-0.52/series > new file mode 100644 > index 0000000..80f9ac9 > --- /dev/null > +++ b/patches/dropbear-0.52/series > @@ -0,0 +1 @@ > +0001-replace-bzero-with-memset.patch > -- > 1.7.0.4 > > > -- > ptxdist mailing list > [email protected] > -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- ptxdist mailing list [email protected]
