summaryrefslogtreecommitdiffstats
path: root/lib/libutil/uucplock.c
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>1998-12-13 01:36:45 +0000
committerdillon <dillon@FreeBSD.org>1998-12-13 01:36:45 +0000
commit99ae894df3a3aa57ec1410174bbf65f764fbd9b5 (patch)
tree53a55f230731ff83dc38852a9be45279e2744374 /lib/libutil/uucplock.c
parent9bdc2c6395f2a14cb3f64472024d64f663780251 (diff)
downloadFreeBSD-src-99ae894df3a3aa57ec1410174bbf65f764fbd9b5.zip
FreeBSD-src-99ae894df3a3aa57ec1410174bbf65f764fbd9b5.tar.gz
Handle the race condition where vipw may lock a password file which has
just been replaced. After our lock succeeds we check if st_nlink is 0 and if it is we close the descriptor and retry our open/lock sequence.
Diffstat (limited to 'lib/libutil/uucplock.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud