diff options
| author | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-06-03 20:48:28 +0000 |
|---|---|---|
| committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-06-03 20:48:28 +0000 |
| commit | 972cf03ed9ac980bb8a66dbbcce59fd4f2837e82 (patch) | |
| tree | 2a29081eaa0e2501c9edc132199a1aa8fe090d87 /lib/libutil/pw_util.3 | |
| parent | 46c3d3ac99dbc1b05ddab13d897bf3c41d785206 (diff) | |
Notes
Diffstat (limited to 'lib/libutil/pw_util.3')
| -rw-r--r-- | lib/libutil/pw_util.3 | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/lib/libutil/pw_util.3 b/lib/libutil/pw_util.3 index 706368fbffed..73150d5501b2 100644 --- a/lib/libutil/pw_util.3 +++ b/lib/libutil/pw_util.3 @@ -37,6 +37,7 @@ .Nm pw_make , .Nm pw_make_v7 , .Nm pw_mkdb , +.Nm pw_mkdb2 , .Nm pw_lock , .Nm pw_scan , .Nm pw_tempname , @@ -66,6 +67,8 @@ .Ft int .Fn pw_mkdb "const char *user" .Ft int +.Fn pw_mkdb "const char *user" "int endian" +.Ft int .Fn pw_lock "void" .Ft "struct passwd *" .Fn pw_scan "const char *line" "int flags" @@ -225,11 +228,30 @@ function regenerates the password database by running .Xr pwd_mkdb 8 . If .Fa user -only the record corresponding to that user will be updated. +is set, only the record corresponding to that user will be updated. The .Fn pw_mkdb function returns 0 in case of success and -1 in case of failure. .Pp +.Fn pw_mkdb2 +function regenerates the password database by running +.Xr pwd_mkdb 8 . +If +.Fa user +is set, only the record corresponding to that user will be updated. +.Pp +The +.Fa endian +variable can take the following values +.Bl -tag -width PWDB_NATIVE +.It Dv PWDB_NATIVE +the database will be generated in host native endianness. +.It Dv PWDB_LE +the database will be generated in Little-endian. +.It Dv PWDB_BE +the database will be generated in Big-endian. +.El +.Pp The .Fn pw_lock function locks the master password file. |
