Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 May 2013 17:10:32 +0000 (UTC)
From:      Cy Schubert <cy@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r319122 - in head/security/sudosh2: . files
Message-ID:  <201305261710.r4QHAW7W099245@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cy
Date: Sun May 26 17:10:31 2013
New Revision: 319122
URL: http://svnweb.freebsd.org/changeset/ports/319122

Log:
  Fix build when usng clang.

Added:
  head/security/sudosh2/files/patch-src-replay.c   (contents, props changed)
Modified:
  head/security/sudosh2/Makefile

Modified: head/security/sudosh2/Makefile
==============================================================================
--- head/security/sudosh2/Makefile	Sun May 26 16:31:15 2013	(r319121)
+++ head/security/sudosh2/Makefile	Sun May 26 17:10:31 2013	(r319122)
@@ -28,7 +28,7 @@ CONFIGURE_ARGS+=	--with-logdir="${SUDOSH
 .else
 CONFIGURE_ARGS+=	--with-logdir=/var/log/sudosh
 .endif
-CFLAGS+=		-lutil
+LDFLAGS+=		-lutil
 
 MAN1=			sudosh.1
 MAN5=			sudosh.conf.5

Added: head/security/sudosh2/files/patch-src-replay.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/sudosh2/files/patch-src-replay.c	Sun May 26 17:10:31 2013	(r319122)
@@ -0,0 +1,11 @@
+--- src/replay.c.orig	2010-07-09 13:37:01.000000000 -0700
++++ src/replay.c	2013-05-26 10:07:55.720227505 -0700
+@@ -238,7 +238,7 @@
+ 	    strncpy(s->randstr, randstr, BUFSIZ - 1);
+ 	    strftime(s->date, 20, "%m/%d/%Y %H:%M:%S", localtime(&s->e));
+ 	    snprintf(s->id, BUFSIZ - 1, "%s%c%s%c%ld%c%s", s->from,
+-		     config_option.fdl, s->to, config_option.fdl, s->e,
++		     config_option.fdl, s->to, config_option.fdl, (long)s->e,
+ 		     config_option.fdl, s->randstr);
+ 
+ 	    link_session(s);



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