1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-16 07:58:04 +00:00
freebsd-ports/sysutils/sformat/files/patch-libscg::scsiopen.c
Alexander Leidinger 063fc0a057 Fix potential root exploit.
THE FREEBSD PORT DOES NOT SET THE SUID BIT, YOU ARE ONLY VULNERABLE IF
YOU SET IT ON YOUR OWN!

See http://marc.theaimsgroup.com/?l=bugtraq&m=105285564307225&w=2 for
more.

Submitted by:	maintainer
2003-05-21 15:12:48 +00:00

12 lines
330 B
C

--- libscg/scsiopen.c.orig Sun Mar 18 14:54:18 2001
+++ libscg/scsiopen.c Tue May 20 22:58:07 2003
@@ -239,7 +239,7 @@
}
if (scg__open(scgp, devname) <= 0) {
if (errs && scgp->errstr)
- js_snprintf(errs, slen, scgp->errstr);
+ js_snprintf(errs, slen, "%s", scgp->errstr);
scg_sfree(scgp);
return ((SCSI *)0);
}