diff options
| author | lukem <lukem@NetBSD.org> | 1999-01-16 07:59:39 +0000 |
|---|---|---|
| committer | lukem <lukem@NetBSD.org> | 1999-01-16 07:59:39 +0000 |
| commit | d3f8abaacbd3035be60812575fbdcbccfd32b032 (patch) | |
| tree | 6066547275d2ae5b07e1022001c04bc22213bf33 /lib/libc/gen/getusershell.3 | |
| parent | 73a39058456088f783daf8a2186466799043f23a (diff) | |
reference nsswitch.conf(5)
Diffstat (limited to 'lib/libc/gen/getusershell.3')
| -rw-r--r-- | lib/libc/gen/getusershell.3 | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/lib/libc/gen/getusershell.3 b/lib/libc/gen/getusershell.3 index 29697e09b4c..be8a1383474 100644 --- a/lib/libc/gen/getusershell.3 +++ b/lib/libc/gen/getusershell.3 @@ -1,4 +1,4 @@ -.\" $NetBSD: getusershell.3,v 1.4 1998/02/05 18:46:58 perry Exp $ +.\" $NetBSD: getusershell.3,v 1.5 1999/01/16 08:11:03 lukem Exp $ .\" .\" Copyright (c) 1985, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -33,14 +33,14 @@ .\" .\" @(#)getusershell.3 8.1 (Berkeley) 6/4/93 .\" -.Dd June 4, 1993 +.Dd January 16, 1999 .Dt GETUSERSHELL 3 .Os BSD 4.3 .Sh NAME .Nm getusershell , .Nm setusershell , .Nm endusershell -.Nd get legal user shells +.Nd get valid user shells .Sh LIBRARY .Lb libc .Sh SYNOPSIS @@ -54,18 +54,16 @@ The .Fn getusershell function -returns a pointer to a legal user shell as defined by the -system manager in the file -.Pa /etc/shells . -If -.Pa /etc/shells -is unreadable or does not exist, +returns a pointer to a valid user shell as defined by the +system manager in the shells database as described in +.Xr shells 5 . +If the shells database is not available, .Fn getusershell behaves as if .Pa /bin/sh and .Pa /bin/csh -were listed in the file. +were listed. .Pp The .Fn getusershell @@ -86,6 +84,7 @@ The routine returns a null pointer (0) on .Dv EOF . .Sh SEE ALSO +.Xr nsswitch.conf 5 , .Xr shells 5 .Sh HISTORY The |
