=== modified file 'configure' --- configure 2001-09-24 21:06:21 +0000 +++ configure 2014-04-21 01:53:27 +0000 @@ -56,6 +56,9 @@ BINDIR="$EXECPREFIX/bin" SBINDIR="$EXECPREFIX/sbin" MANDIR="$PREFIX/man" +if [ ! -d "$PREFIX/man" ]; then + [ -d "$PREFIX/share/man" ] && MANDIR="$PREFIX/share/man" +fi echo "Directories: $BINDIR $SBINDIR $MANDIR " === modified file 'debian/changelog' --- debian/changelog 2010-01-15 17:17:00 +0000 +++ debian/changelog 2014-04-21 01:53:27 +0000 @@ -1,3 +1,23 @@ +netkit-rwall (0.17-7ubuntu3) trusty; urgency=low + + * Change urgency medium to low + + -- Chris Good Mon, 21 Apr 2014 10:00:20 +1000 + +netkit-rwall (0.17-7ubuntu2) trusty; urgency=medium + + * Update maintainer + XSBC-Original-Maintainer + + -- Chris Good Mon, 21 Apr 2014 09:15:04 +1000 + +netkit-rwall (0.17-7ubuntu1) trusty; urgency=medium + + * Stop garbage characters being added to end of received message + - rwall.c: Null terminate mbuf (LP: #1277981) + * configure: Use MANDIR /usr/share/man if /usr/man does not exist + + -- Chris Good Mon, 21 Apr 2014 08:46:34 +1000 + netkit-rwall (0.17-7) unstable; urgency=low * debian/control: === modified file 'debian/control' --- debian/control 2010-01-15 17:17:00 +0000 +++ debian/control 2014-04-21 01:53:27 +0000 @@ -1,7 +1,8 @@ Source: netkit-rwall Section: net Priority: optional -Maintainer: Alberto Gonzalez Iniesta +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Alberto Gonzalez Iniesta Standards-Version: 3.8.3 Build-Depends: debhelper (>= 7) === modified file 'rwall/rwall.c' --- rwall/rwall.c 2001-09-24 21:06:21 +0000 +++ rwall/rwall.c 2014-04-21 01:53:27 +0000 @@ -30,6 +30,11 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. + * + * 30/03/2014 chris.good@ozemail.com.au Null terminate mbuf so garbage not + * added to end of received message. + * Refer: + * https://bugs.launchpad.net/ubuntu/+source/netkit-rwall/+bug/1277981 */ char copyright[] = @@ -40,7 +45,7 @@ * From: @(#)wall.c 5.14 (Berkeley) 3/2/91 */ char rcsid[] = - "$Id: rwall.c,v 1.8 1999/12/12 18:05:05 dholland Exp $"; + "$Id: rwall.c,v 1.9 2014/03/30 16:13:00 cgood Exp $"; /* * This program is not related to David Wall, whose Stanford Ph.D. thesis @@ -167,7 +172,7 @@ exit(1); } mbufsize = sbuf.st_size; - if (!(mbuf = malloc(mbufsize))) { + if (!(mbuf = malloc(mbufsize + 1))) { (void)fprintf(stderr, "wall: out of memory.\n"); exit(1); } @@ -175,5 +180,6 @@ (void)fprintf(stderr, "wall: can't read temporary file.\n"); exit(1); } + mbuf[mbufsize] = '\0'; (void)close(fd); }