svn commit: r319122 - in head/security/sudosh2: . files

Cy Schubert cy at FreeBSD.org
Sun May 26 17:10:32 UTC 2013


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);


More information about the svn-ports-all mailing list