aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/netatalk3/Makefile1
-rw-r--r--net/netatalk3/files/patch-libatalk_util_netatalk_conf.c20
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] = ':';
+