Date: Sun, 13 Jan 2013 02:06:57 +0000 (UTC) From: Joe Marcus Clarke <marcus@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r310297 - in head/net/netatalk3: . files Message-ID: <201301130206.r0D26vOx056901@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: marcus Date: Sun Jan 13 02:06:57 2013 New Revision: 310297 URL: http://svnweb.freebsd.org/changeset/ports/310297 Log: Add a patch from netatalk git to fix a CNID initialization error. Submitted by: Chris Milios< cropcirclesystems@yahoo.com> Obtained from: Netatalk Git Added: head/net/netatalk3/files/patch-libatalk_util_netatalk_conf.c (contents, props changed) Modified: head/net/netatalk3/Makefile Modified: head/net/netatalk3/Makefile ============================================================================== --- head/net/netatalk3/Makefile Sun Jan 13 01:02:26 2013 (r310296) +++ head/net/netatalk3/Makefile Sun Jan 13 02:06:57 2013 (r310297) @@ -7,6 +7,7 @@ PORTNAME= netatalk PORTVERSION= 3.0.1 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= net MASTER_SITES= SF Added: head/net/netatalk3/files/patch-libatalk_util_netatalk_conf.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/netatalk3/files/patch-libatalk_util_netatalk_conf.c Sun Jan 13 02:06:57 2013 (r310297) @@ -0,0 +1,20 @@ +--- ./libatalk/util/netatalk_conf.c.orig 2013-01-07 12:21:30.309544508 +0000 ++++ ./libatalk/util/netatalk_conf.c 2013-01-07 12:23:22.360529479 +0000 +@@ -563,7 +563,7 @@ + EC_INIT; + struct vol *volume = NULL; + int i, suffixlen, vlen, tmpvlen, u8mvlen, macvlen; +- char *tmpname; ++ char tmpname[AFPVOL_U8MNAMELEN+1]; + ucs2_t u8mtmpname[(AFPVOL_U8MNAMELEN+1)*2], mactmpname[(AFPVOL_MACNAMELEN+1)*2]; + char suffix[6]; /* max is #FFFF */ + uint16_t flags; +@@ -643,7 +643,7 @@ + EC_NULL( volume->v_maccodepage = strdup(obj->options.maccodepage) ); + + vlen = strlen(name); +- tmpname = strdup(name); ++ strlcpy(tmpname, name, sizeof(tmpname)); + for(i = 0; i < vlen; i++) + if(tmpname[i] == '/') tmpname[i] = ':'; +
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301130206.r0D26vOx056901>