ports/security/sfs/files/patch-agent_ssu.C
Edwin Groothuis ef4fc524f8 Update port: security/sfs, fix build with gcc42
The attached patch fixes security/sfs so it builds with
	gcc42. The only change I made that I am wary of is commenting
	out the LIBTOOL variable in ${WRKSRC}/sfsrwcd/Makefile.
	However, this seems to work fine on both 7.0-CURRENT and
	6.2-STABLE.

	In addition, I would not mind maintaining the port.

PR:		ports/116389
Submitted by:	Dave Grochowski <malus.x@gmail.com>
2007-09-23 03:17:21 +00:00

22 lines
600 B
C

--- agent/ssu.C.orig 2002-08-01 17:09:53.000000000 -0400
+++ agent/ssu.C 2007-09-15 19:44:20.000000000 -0400
@@ -87,7 +87,7 @@
str cwdopt = getcwdopt ();
vec<char *> av;
- av.push_back (PATH_SU);
+ av.push_back (const_cast<char *> (PATH_SU));
int ch;
while ((ch = getopt (argc, argv, "fmlc:")) != -1)
@@ -111,8 +111,8 @@
if (argc)
usage ();
- av.push_back ("root");
- av.push_back ("-c");
+ av.push_back (const_cast<char *> ("root"));
+ av.push_back (const_cast<char *> ("-c"));
{
strbuf cbuf ("exec ");
cbuf << fix_exec_path ("newaid") << " " << uidopt;