freebsd-ports/sysutils/cdrdao/files/patch-scsilib::libscg::scsiopen.c
Alexander Leidinger 2799d745c3 Fix potential root exploit.
THE FREEBSD PORT IS NOT VULNERABLE AS IT DOES NOT SET THE SUID BIT, YOU
ARE ONLY VULNERABLE, IF YOU SET IT ON YOUR OWN!

Submitted by:	maintainer
2003-05-21 15:19:38 +00:00

11 lines
346 B
C

--- scsilib/libscg/scsiopen.c.orig Sun Nov 25 16:35:10 2001
+++ scsilib/libscg/scsiopen.c Tue May 20 23:01:01 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);
}