aboutsummaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2007-09-23 09:14:20 +0000
committerMartin Wilke <miwi@FreeBSD.org>2007-09-23 09:14:20 +0000
commit9763e55d650dfe51a14b3b9920ee7f4d3a22ed8c (patch)
tree4dcf93cac4bc32b7c38801ce127a76f3522bcb32 /security
parent81ae78a9439f162ce16e713f9bc393d386dff0c2 (diff)
downloadports-9763e55d650dfe51a14b3b9920ee7f4d3a22ed8c.tar.gz
ports-9763e55d650dfe51a14b3b9920ee7f4d3a22ed8c.zip
Notes
Diffstat (limited to 'security')
-rw-r--r--security/sfs/Makefile2
-rw-r--r--security/sfs/files/patch-rex_ptyd.C42
2 files changed, 43 insertions, 1 deletions
diff --git a/security/sfs/Makefile b/security/sfs/Makefile
index 707aae6d8ad5..544fe0e77825 100644
--- a/security/sfs/Makefile
+++ b/security/sfs/Makefile
@@ -28,7 +28,7 @@ CONFIGURE_ARGS+=--with-sfsuser=sfs \
--disable-uvfs \
--with-gmp=${LOCALBASE}
-LIB_DEPENDS+= gmp.7:${PORTSDIR}/math/libgmp4
+LIB_DEPENDS+= gmp.7:${PORTSDIR}/math/libgmp4
.include <bsd.port.pre.mk>
diff --git a/security/sfs/files/patch-rex_ptyd.C b/security/sfs/files/patch-rex_ptyd.C
new file mode 100644
index 000000000000..3185448dd639
--- /dev/null
+++ b/security/sfs/files/patch-rex_ptyd.C
@@ -0,0 +1,42 @@
+--- rex/ptyd.C.orig 2007-09-23 03:02:05.000000000 -0400
++++ rex/ptyd.C 2007-09-23 03:03:45.000000000 -0400
+@@ -94,13 +94,13 @@
+ return -1;
+
+ vec<char *> argv;
+- argv.push_back ("sessreg");
++ argv.push_back (const_cast<char *> ("sessreg"));
+ if (add)
+- argv.push_back ("-a");
++ argv.push_back (const_cast<char *> ("-a"));
+ else
+- argv.push_back ("-d");
++ argv.push_back (const_cast<char *> ("-d"));
+
+- argv.push_back ("-l");
++ argv.push_back (const_cast<char *> ("-l"));
+ if (tty && !strncmp ("/dev/", tty, 5) && tty[5])
+ tmp = const_cast<char *> (&tty[5]);
+ else {
+@@ -110,10 +110,10 @@
+ if (tmp)
+ argv.push_back (tmp);
+ else
+- argv.push_back ("?");
++ argv.push_back (const_cast<char *> ("?"));
+
+ if (host) {
+- argv.push_back ("-h");
++ argv.push_back (const_cast<char *> ("-h"));
+ argv.push_back (const_cast<char *> (host));
+ }
+
+@@ -121,7 +121,7 @@
+ int slot = myttyslot (tty);
+ if (slot > 0) {
+ str s = strbuf () << slot;
+- argv.push_back ("-s");
++ argv.push_back (const_cast<char *> ("-s"));
+ argv.push_back (const_cast<char *> (s.cstr ()));
+ }
+ #endif /* USE_TTYENT */