From owner-freebsd-bugs Fri Oct 8 0:30: 9 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 48DCE1543E for ; Fri, 8 Oct 1999 00:30:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id AAA10668; Fri, 8 Oct 1999 00:30:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Fri, 8 Oct 1999 00:30:01 -0700 (PDT) Message-Id: <199910080730.AAA10668@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Ruslan Ermilov Subject: Re: kern/14201: setpassent() in libc does not function properly Reply-To: Ruslan Ermilov Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR kern/14201; it has been noted by GNATS. From: Ruslan Ermilov To: "Robert Wojciechowski Jr." Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: kern/14201: setpassent() in libc does not function properly Date: Fri, 8 Oct 1999 10:20:06 +0300 On Fri, Oct 08, 1999 at 12:00:01AM -0700, Robert Wojciechowski Jr. wrote: > > The patch in this bug report does not work fully. I patched the endpwent() > function, and it works correctly now: > > 244,246d243 > < if (_pw_stayopen) > < return; > < > > It will keep the fd open when setpassent(int stayopen) is passed 1. It's > now behaving the way it should ;) > And endpwent() will never close the file :-( -- Ruslan Ermilov Sysadmin and DBA of the ru@ucb.crimea.ua United Commercial Bank, ru@FreeBSD.org FreeBSD committer, +380.652.247.647 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message