aboutsummaryrefslogtreecommitdiff
path: root/security/sudosh2
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2013-05-26 17:10:31 +0000
committerCy Schubert <cy@FreeBSD.org>2013-05-26 17:10:31 +0000
commit25d82f9122cebab9a20cfbe118da5e49a9fa1624 (patch)
tree93a01fe30fad202b760d45838c57ae09d97363e5 /security/sudosh2
parentec645f596bc20e37e4b14e81234df877e2a86e06 (diff)
downloadports-25d82f9122cebab9a20cfbe118da5e49a9fa1624.tar.gz
ports-25d82f9122cebab9a20cfbe118da5e49a9fa1624.zip
Notes
Diffstat (limited to 'security/sudosh2')
-rw-r--r--security/sudosh2/Makefile2
-rw-r--r--security/sudosh2/files/patch-src-replay.c11
2 files changed, 12 insertions, 1 deletions
diff --git a/security/sudosh2/Makefile b/security/sudosh2/Makefile
index 36d2f17a9be6..895fc03df16c 100644
--- a/security/sudosh2/Makefile
+++ b/security/sudosh2/Makefile
@@ -28,7 +28,7 @@ CONFIGURE_ARGS+= --with-logdir="${SUDOSH_LOGDIR}"
.else
CONFIGURE_ARGS+= --with-logdir=/var/log/sudosh
.endif
-CFLAGS+= -lutil
+LDFLAGS+= -lutil
MAN1= sudosh.1
MAN5= sudosh.conf.5
diff --git a/security/sudosh2/files/patch-src-replay.c b/security/sudosh2/files/patch-src-replay.c
new file mode 100644
index 000000000000..cf694a83762a
--- /dev/null
+++ b/security/sudosh2/files/patch-src-replay.c
@@ -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);