[2182] in bugtraq

home help back first fref pref prev next nref lref last post

beta testing patched libc.so.1.9

daemon@ATHENA.MIT.EDU (Doug Hughes)
Thu Aug 31 16:16:51 1995

Date:         Thu, 31 Aug 1995 10:52:26 -0500
Reply-To: Bugtraq List <BUGTRAQ@CRIMELAB.COM>
From: Doug Hughes <Doug.Hughes@Eng.Auburn.EDU>
X-To:         bugtraq@CRIMELAB.COM
To: Multiple recipients of list BUGTRAQ <BUGTRAQ@CRIMELAB.COM>

I've patched our libc.so.1.9 to fix the syslog hole on SunOS4.1.X systems.
I consider it in beta right now, as it relies on shlib.etc being up to
date, which I'm not confident about for several reasons.

DISCLAIMER: No warranty either express or implied is given with the following.
You accept all risks for any modifications you make to your system. This is
for informative purposes only. (Had to do it :( )

What I used:

syslog.c from 4.4BSDLite CDROM - with mods
  (apply Charles Hannum or Perry Metzger patches - port OS differences)
snprintf.c (includes vsnprintf) from Patrick Powell - PLP author
patch 101759-03 from sun with shlib.etc

To Build:
cc -c -pic syslog.c (will not compile without mods)
cc -c -pic -DHAVE_VARARGS_H -DHAVE_STDARG_H snprintf.c

follow instructions in README in /usr/lib/shlib.etc
additionally rm tmp/wb* tmp/wc* and cp object files from snprintf.o and
syslog.o to tmp directory. Now do your make and continue instructions in
README.

(wbcstombs.o wctomb.o mblib.o mbstowcs.o mbtowc.o have unresolved symbols
which causes compiling new programs to fail - not sure what they are for
hence beta status)

Alternately:
% ftp ftp.eng.auburn.edu
ftp> cd pub/doug
ftp> lcd /tmp
ftp> get libc.so.1.9 libc.so.1.9.1
ftp> exit
% su root
# cd /usr/lib
# cp libc.so.1.9 libc.so.1.9.FCS
# mv /tmp/libc.so.1.9.1 libc.so.1.9
# date (If date returns anything but correct date, mv libc.so.1.9.FCS libc.so.1.9)
# exit
%
- done -


I've also copied snprintf.c, snprintf.h and syslog.c to the same ftp
directory for those who want to examine the code and do it yourself.

home help back first fref pref prev next nref lref last post