[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS: cvs.openbsd.org: src
- To: source-changes_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org
- Subject: CVS: cvs.openbsd.org: src
- From: "Todd C. Miller" <millert_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org>
- Date: Wed, 15 Aug 2001 14:47:54 -0600 (MDT)
- Reply-to: "Todd C. Miller" <millert_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org>
CVSROOT: /cvs
Module name: src
Changes by: millert_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org 2001/08/15 14:47:53
Modified files:
usr.bin/chpass : chpass.1 chpass.c
Log message:
Move locking of the passwd file *after* we have gotten a new password
from the user. Set real/effective/saved uids to 0 and block all signals
so the lock cannot be kept longer than necessary. If we cannot lock,
try again every 1/4 second for 2 seconds and then ask the user what
they wish to do (keep trying, quit).
Same as in local_passwd.c but here we need to remove a temp file
in the SIGINT handler because _exit() doesn't call atexit() routines.
Visit your host, monkey.org