]> git.cameronkatri.com Git - pw-darwin.git/commit
Shift file locking to source file instead of temp file. This fixes
authorKen Smith <kensmith@FreeBSD.org>
Mon, 8 Mar 2004 20:31:37 +0000 (20:31 +0000)
committerKen Smith <kensmith@FreeBSD.org>
Mon, 8 Mar 2004 20:31:37 +0000 (20:31 +0000)
commit8d5a556f139a260e3b175e1feeb12f919b1e988e
treea3abcb7190e947894eec0fe0d7e87b9740f4acf1
parentb27d926ad7395341206965caca6afdd6978787a6
Shift file locking to source file instead of temp file.  This fixes
data buffering issue that corrupts files if two pw(8)'s run at the
same time as well as changing pw(8) so it uses the same locking
mechanism as PAM, vipw(8), pwd_mkdb(8), etc.

PR: bin/23501
Submitted by: Alex Kapranoff <alex (at) kapran (dot) bitmcnit (dot) bryansk (dot) su>
Approved by: rwatson (mentor)
MFC after: 5 days
pw/edgroup.c
pw/fileupd.c