1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-02 06:03:50 +00:00
freebsd-ports/security/sfs/files/patch-rex_chan.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

16 lines
496 B
C

--- rex/chan.C.orig 2007-09-15 19:54:59.000000000 -0400
+++ rex/chan.C 2007-09-15 19:55:32.000000000 -0400
@@ -366,10 +366,10 @@
av.push_back (default_shell);
else {
warn ("SHELL not set, reverting to sh\n");
- av.push_back ("sh");
+ av.push_back (const_cast<char *> ("sh"));
}
if (argp->av.size () == 1)
- av.push_back ("-i");
+ av.push_back (const_cast<char *> ("-i"));
}
else
av.push_back (const_cast<char *> (argp->av[0].cstr ()));