From 23beafab6383e6ae6df551ea68d58eb4635c5506 Mon Sep 17 00:00:00 2001 From: ghudson Date: Sun, 2 Jun 1996 19:26:18 +0000 Subject: [PATCH] Document that the caller must do a pw_abort() if pw_mkdb() fails. --- lib/libutil/pw_lock.3 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/libutil/pw_lock.3 b/lib/libutil/pw_lock.3 index f768f6970c97..b5791af817cf 100644 --- a/lib/libutil/pw_lock.3 +++ b/lib/libutil/pw_lock.3 @@ -79,6 +79,11 @@ You should finish writing to and close the file descriptor returned by .Fn pw_lock before calling .Fn pw_mkdb . +If +.Fn pw_mkdb +fails and you do not wish to retry, you should make sure to call +.Fn pw_abort +to clean up the lock file. .Pp The .Fn pw_abort