diff options
author | marcus <marcus@FreeBSD.org> | 2013-01-13 10:06:57 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2013-01-13 10:06:57 +0800 |
commit | a4d0405415352fb0df15c26cd3d9211e1214820f (patch) | |
tree | fb386518917e02108587efb654b2a8a98c69c9ef /net | |
parent | 7b24d6b133ff10122b1b4ae04b5654e8035d050b (diff) | |
download | freebsd-ports-gnome-a4d0405415352fb0df15c26cd3d9211e1214820f.tar.gz freebsd-ports-gnome-a4d0405415352fb0df15c26cd3d9211e1214820f.tar.zst freebsd-ports-gnome-a4d0405415352fb0df15c26cd3d9211e1214820f.zip |
Add a patch from netatalk git to fix a CNID initialization error.
Submitted by: Chris Milios< cropcirclesystems@yahoo.com>
Obtained from: Netatalk Git
Diffstat (limited to 'net')
-rw-r--r-- | net/netatalk3/Makefile | 1 | ||||
-rw-r--r-- | net/netatalk3/files/patch-libatalk_util_netatalk_conf.c | 20 |
2 files changed, 21 insertions, 0 deletions
diff --git a/net/netatalk3/Makefile b/net/netatalk3/Makefile index 133291dc9b6b..f5dcc5b3829d 100644 --- a/net/netatalk3/Makefile +++ b/net/netatalk3/Makefile @@ -7,6 +7,7 @@ PORTNAME= netatalk PORTVERSION= 3.0.1 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= net MASTER_SITES= SF diff --git a/net/netatalk3/files/patch-libatalk_util_netatalk_conf.c b/net/netatalk3/files/patch-libatalk_util_netatalk_conf.c new file mode 100644 index 000000000000..02dedb656168 --- /dev/null +++ b/net/netatalk3/files/patch-libatalk_util_netatalk_conf.c @@ -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] = ':'; + |