Statisize usage().
This commit is contained in:
parent
9396247ef7
commit
acb61b9eb4
@ -32,7 +32,11 @@
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
#if 0
|
||||
static const char sccsid[] = "@(#)pw_util.c 8.3 (Berkeley) 4/2/94";
|
||||
#endif
|
||||
static const char rcsid[] =
|
||||
"$Id$";
|
||||
#endif /* not lint */
|
||||
|
||||
/*
|
||||
@ -47,7 +51,6 @@ static const char sccsid[] = "@(#)pw_util.c 8.3 (Berkeley) 4/2/94";
|
||||
#include <sys/wait.h>
|
||||
|
||||
#include <err.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <paths.h>
|
||||
#include <pwd.h>
|
||||
|
@ -32,7 +32,11 @@
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
#if 0
|
||||
static const char sccsid[] = "@(#)pw_util.c 8.3 (Berkeley) 4/2/94";
|
||||
#endif
|
||||
static const char rcsid[] =
|
||||
"$Id$";
|
||||
#endif /* not lint */
|
||||
|
||||
/*
|
||||
@ -47,7 +51,6 @@ static const char sccsid[] = "@(#)pw_util.c 8.3 (Berkeley) 4/2/94";
|
||||
#include <sys/wait.h>
|
||||
|
||||
#include <err.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <paths.h>
|
||||
#include <pwd.h>
|
||||
|
@ -44,10 +44,10 @@
|
||||
edits the password file after setting the appropriate locks,
|
||||
and does any necessary processing after the password file is unlocked.
|
||||
If the password file is already locked for editing by another user,
|
||||
.Nm vipw
|
||||
.Nm
|
||||
will ask you
|
||||
to try again later. The default editor for
|
||||
.Nm vipw
|
||||
.Nm
|
||||
is
|
||||
.Xr vi 1 .
|
||||
.Pp
|
||||
@ -58,12 +58,12 @@ and will not allow a password file with a
|
||||
entry to be
|
||||
installed.
|
||||
If
|
||||
.Nm vipw
|
||||
.Nm
|
||||
rejects the new password file, the user is prompted to re-enter
|
||||
the edit session.
|
||||
.Pp
|
||||
Once the information has been verified,
|
||||
.Nm vipw
|
||||
.Nm
|
||||
uses
|
||||
.Xr pwd_mkdb 8
|
||||
to update the user database. This is run in the background, and,
|
||||
@ -72,7 +72,7 @@ is completed, the password file is unavailable for other updates
|
||||
and the new information is not available to programs.
|
||||
.Sh ENVIRONMENT
|
||||
If the following environment variable exists it will be utilized by
|
||||
.Nm vipw :
|
||||
.Nm Ns :
|
||||
.Bl -tag -width EDITOR
|
||||
.It Ev EDITOR
|
||||
The editor specified by the string
|
||||
|
@ -32,13 +32,17 @@
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char copyright[] =
|
||||
static const char copyright[] =
|
||||
"@(#) Copyright (c) 1987, 1993, 1994\n\
|
||||
The Regents of the University of California. All rights reserved.\n";
|
||||
#endif /* not lint */
|
||||
|
||||
#ifndef lint
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)vipw.c 8.3 (Berkeley) 4/2/94";
|
||||
#endif
|
||||
static const char rcsid[] =
|
||||
"$Id$";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
@ -56,7 +60,7 @@ static char sccsid[] = "@(#)vipw.c 8.3 (Berkeley) 4/2/94";
|
||||
char *tempname;
|
||||
|
||||
void copyfile __P((int, int));
|
||||
void usage __P((void));
|
||||
static void usage __P((void));
|
||||
|
||||
int
|
||||
main(argc, argv)
|
||||
@ -118,7 +122,7 @@ copyfile(from, to)
|
||||
pw_error(_PATH_MASTERPASSWD, 1, 1);
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
usage()
|
||||
{
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user