freebsd-ports/sysutils/sformat/files/patch-libscg::scsitransp.c
Alexander Leidinger 6d00c62b3d - Fix yet another bug that might be used for a root exploit. As with the last
bug you are only vulnerable if you locally set the sformat binary suid root.
- Respect CC already at the configure-stage of sformat else we end up running
  configure with GCC and compiling with whatever CC was set to.

Submitted by:	maintainer
2003-06-04 18:40:33 +00:00

11 lines
290 B
C

--- libscg/scsitransp.c.orig Fri Apr 20 10:38:05 2001
+++ libscg/scsitransp.c Wed May 28 19:36:31 2003
@@ -1016,7 +1016,7 @@
register Uchar *cp;
register int n;
{
- js_fprintf(f, s);
+ js_fprintf(f, "%s", s);
while (--n >= 0)
js_fprintf(f, " %02X", *cp++);
js_fprintf(f, "\n");