From owner-cvs-lib Sun Sep 14 17:40:59 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id RAA15140 for cvs-lib-outgoing; Sun, 14 Sep 1997 17:40:59 -0700 (PDT) Received: from precipice.shockwave.com (precipice.shockwave.com [207.105.15.229]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id RAA15133; Sun, 14 Sep 1997 17:40:56 -0700 (PDT) Received: from shockwave.com (localhost [127.0.0.1]) by precipice.shockwave.com (8.8.6/8.7.3) with ESMTP id RAA13043; Sun, 14 Sep 1997 17:38:06 -0700 (PDT) Message-Id: <199709150038.RAA13043@precipice.shockwave.com> To: Wolfram Schneider cc: Vincent Poy , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: Re: cvs commit: src/lib/libc/gen getpwent.c In-reply-to: Your message of "Sun, 14 Sep 1997 16:31:10 PDT." <19970914163110.42169@freebsd.org> Date: Sun, 14 Sep 1997 17:38:06 -0700 From: Paul Traina Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk It seems to me that we want the ability to have libc work with older kernels? If so, something along the lines of what peter did with poll() in the resolver code would be correct, yes? From: Wolfram Schneider Subject: Re: cvs commit: src/lib/libc/gen getpwent.c On Sun, Sep 14, 1997 at 03:10:52PM -0700, Vincent Poy wrote: > On Sun, 14 Sep 1997, Wolfram Schneider wrote: > > wosch 1997/09/14 11:16:12 PDT > > > > Modified files: > > lib/libc/gen getpwent.c > > Log: > > Potential bufferflow in getpwent(), getpwnam() and getpwuid() > > > > PR: bin/4134 > > Submitted by: nick@foobar.org > > > > Revision Changes Path > > 1.41 +7 -2 src/lib/libc/gen/getpwent.c > > This one fails after building at: > > gzip -c /usr/src/lib/libc/../libc/regex/re_format.7 > re_format.7.gz > gzip -c /usr/src/lib/libc/../libc/rpc/rstat_svc.8 > rstat_svc.8.gz > install -c -o bin -g bin -m 444 libc.a /usr/lib > install -c -o bin -g bin -m 444 libc_p.a /usr/lib > install -c -o bin -g bin -m 444 -fschg libc.so.3.0 /usr/lib > install -c -o bin -g bin -m 444 libc_pic.a /usr/lib > ld.so failed: Undefined symbol "SYS___getcwd" in > install:/usr/lib/libc.so.3.0 > *** Error code 1 > > Stop. This has nothing to do with getpwent.c. __getcwd is the new system call. Didn't you read the warning in -current? Wolfram