Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Jan 2014 00:06:57 +0000 (UTC)
From:      Joe Marcus Clarke <marcus@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r340506 - in branches/2014Q1/net/netatalk3: . files
Message-ID:  <201401210006.s0L06vk5058725@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marcus
Date: Tue Jan 21 00:06:56 2014
New Revision: 340506
URL: http://svnweb.freebsd.org/changeset/ports/340506
QAT: https://qat.redports.org/buildarchive/r340506/

Log:
  MFH: (r340498)
  
  Revert a bad upstream patch pertaining to varargs that continued to plague
  Time Machine users.
  
  Submitted by: dim
  
  Approved by:	portmgr (miwi)

Modified:
  branches/2014Q1/net/netatalk3/Makefile
  branches/2014Q1/net/netatalk3/files/patch-etc_afpd_afp_mdns.c
Directory Properties:
  branches/2014Q1/   (props changed)

Modified: branches/2014Q1/net/netatalk3/Makefile
==============================================================================
--- branches/2014Q1/net/netatalk3/Makefile	Tue Jan 21 00:06:26 2014	(r340505)
+++ branches/2014Q1/net/netatalk3/Makefile	Tue Jan 21 00:06:56 2014	(r340506)
@@ -3,7 +3,7 @@
 
 PORTNAME=	netatalk
 PORTVERSION=	3.1.0
-PORTREVISION=	2
+PORTREVISION=	3
 PORTEPOCH=	1
 CATEGORIES=	net
 MASTER_SITES=	SF

Modified: branches/2014Q1/net/netatalk3/files/patch-etc_afpd_afp_mdns.c
==============================================================================
--- branches/2014Q1/net/netatalk3/files/patch-etc_afpd_afp_mdns.c	Tue Jan 21 00:06:26 2014	(r340505)
+++ branches/2014Q1/net/netatalk3/files/patch-etc_afpd_afp_mdns.c	Tue Jan 21 00:06:56 2014	(r340506)
@@ -1,20 +1,23 @@
 --- etc/afpd/afp_mdns.c.orig	2013-10-28 06:43:13.000000000 -0700
 +++ etc/afpd/afp_mdns.c	2014-01-17 22:10:59.000000000 -0800
 @@ -37,17 +37,15 @@
+ /*
   * Its easier to use asprintf to set the TXT record values
   */
- #define TXTRecordPrintf(rec, key, args, ...) {           \
+-#define TXTRecordPrintf(rec, key, args, ...) {           \
 -        char *str;                                      \
 -        asprintf(&str, args);                           \
++#define TXTRecordPrintf(rec, key, args...) {           \
 +        char str[1024];                                      \
 +        sprintf(str, args);                           \
          TXTRecordSetValue(rec, key, strlen(str), str);  \
 -        free(str);                                      \
      }
- #define TXTRecordKeyPrintf(rec, k, var, args, ...) {     \
+-#define TXTRecordKeyPrintf(rec, k, var, args, ...) {     \
 -        char *key, *str;                                \
 -        asprintf(&key, k, var);                         \
 -        asprintf(&str, args);                           \
++#define TXTRecordKeyPrintf(rec, k, var, args...) {     \
 +        char key[1024], str[1024];                                \
 +        sprintf(key, k, var);                         \
 +        sprintf(str, args);                           \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401210006.s0L06vk5058725>