From owner-freebsd-hackers Tue Aug 18 23:15:58 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA27907 for freebsd-hackers-outgoing; Tue, 18 Aug 1998 23:15:58 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from barter.dewline.com ([209.208.153.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA27902 for ; Tue, 18 Aug 1998 23:15:57 -0700 (PDT) (envelope-from mackler@barter.dewline.com) Received: (from mackler@localhost) by barter.dewline.com (8.8.8/8.8.8) id CAA26143; Wed, 19 Aug 1998 02:14:54 -0400 (EDT) (envelope-from mackler) Date: Wed, 19 Aug 1998 02:14:54 -0400 (EDT) Message-Id: <199808190614.CAA26143@barter.dewline.com> From: Adam Mackler To: Floody , proftpd-l@evcom.net, hackers@FreeBSD.ORG, btman@ugcs.caltech.edu Cc: mackler@barter.dewline.com Subject: Re: [proftpd-l] New ProFTPd user - Security, Incoming and pwd.db? Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Date: Thu, 6 Aug 1998 17:50:08 -0400 > From: Floody > Reply-To: proftpd-l@evcom.net > To: Karl Pielorz > Cc: proftpd-l@evcom.net > Subject: Re: [proftpd-l] New ProFTPd user - Security, Incoming and pwd.db? > > Ok. I put up a test FreeBSD 2.2.7 system. There appears to be a libc > problem with the setpassent() function, which doesn't work on FreeBSD as > documented in the man pages (or on any other BSD). This is the heart of > the problem. There is no workaround until libc is fixed. Hi: I think the following patch may fix the problem, but I'm afraid I don't know how to rebuild my c library. If you find out if this works can you let me know? Thanks. *** getpwent.c Wed Aug 19 02:00:13 1998 --- getpwent.c.dist Wed Aug 19 01:58:33 1998 *************** *** 194,201 **** if (rval && (_pw_passwd.pw_name[0] == '+'|| _pw_passwd.pw_name[0] == '-')) rval = 0; ! if (!_pw_stayopen) ! endpwent(); return(rval ? &_pw_passwd : (struct passwd *)NULL); } --- 194,200 ---- if (rval && (_pw_passwd.pw_name[0] == '+'|| _pw_passwd.pw_name[0] == '-')) rval = 0; ! endpwent(); return(rval ? &_pw_passwd : (struct passwd *)NULL); } -- Adam Mackler Dewline Communications, LLC 212-505-9149 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message