Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Jun 2002 07:40:39 -0500
From:      "Matthew D. Fuller" <fullermd@over-yonder.net>
To:        Terry Lambert <tlambert2@mindspring.com>
Cc:        Paul Herman <pherman@frenchfries.net>, "Geoffrey C. Speicher" <geoff@sea-incorporated.com>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: bug in pw, -STABLE [patch]
Message-ID:  <20020624124039.GB59373@over-yonder.net>
In-Reply-To: <3D1662CC.FE6F6D49@mindspring.com>
References:  <20020623111412.V38509-100000@mammoth.eat.frenchfries.net> <3D1662CC.FE6F6D49@mindspring.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jun 23, 2002 at 05:07:40PM -0700 I heard the voice of
Terry Lambert, and lo! it spake thus:
> 
> The problem with your proposed patch is that it breaks the
> ability to allow authentication against the database while
> it is undergoing modification, which may be a prolonged period.

Would it?

For starters, this locks master.passwd, not spwd.db, so any well-behaved
program that used getpw*() like a good little monkey wouldn't even notice
it.  In fact, with Paul's change and the rename() alteration, it'd be
BETTER for programs that tried to parse master.passwd, because as it
currently stands, there are times when it's incomplete (because of the
line-by-line copy, which caused us both a few moments of illness when we
noticed it).


-- 
Matthew Fuller     (MF4839)   |  fullermd@over-yonder.net
Systems/Network Administrator |  http://www.over-yonder.net/~fullermd/

"The only reason I'm burning my candle at both ends, is because I
      haven't figured out how to light the middle yet"

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020624124039.GB59373>