version 1.22, 2002/03/14 06:51:41 |
version 1.23, 2002/06/27 19:02:40 |
|
|
#ifndef lint |
#ifndef lint |
#if 0 |
#if 0 |
static char sccsid[] = "@(#)chpass.c 8.4 (Berkeley) 4/2/94"; |
static char sccsid[] = "@(#)chpass.c 8.4 (Berkeley) 4/2/94"; |
#else |
#else |
static char rcsid[] = "$OpenBSD$"; |
static char rcsid[] = "$OpenBSD$"; |
#endif |
#endif |
#endif /* not lint */ |
#endif /* not lint */ |
|
|
void usage(void); |
void usage(void); |
|
|
int |
int |
main(argc, argv) |
main(int argc, char *argv[]) |
int argc; |
|
char **argv; |
|
{ |
{ |
struct passwd *pw, lpw; |
struct passwd *pw = NULL, lpw; |
int i, ch, pfd, tfd, dfd; |
int i, ch, pfd, tfd, dfd; |
char *arg; |
char *arg = NULL; |
sigset_t fullset; |
sigset_t fullset; |
|
|
#ifdef YP |
#ifdef YP |
|
|
|
|
#ifdef YP |
#ifdef YP |
if (op == LOADENTRY && use_yp) |
if (op == LOADENTRY && use_yp) |
errx(1, "cannot load entry using NIS.\n\tUse the -l flag to load local."); |
errx(1, "cannot load using YP, use -l to load local."); |
#endif |
#endif |
uid = getuid(); |
uid = getuid(); |
|
|
|
|
} |
} |
|
|
void |
void |
baduser() |
baduser(void) |
{ |
{ |
|
|
errx(1, "%s", strerror(EACCES)); |
errx(1, "%s", strerror(EACCES)); |
} |
} |
|
|
void |
void |
tempcleanup() |
tempcleanup(void) |
{ |
{ |
|
|
unlink(tempname); |
unlink(tempname); |
} |
} |
|
|
void |
void |
kbintr(signo) |
kbintr(int signo) |
int signo; |
|
{ |
{ |
struct iovec iv[5]; |
struct iovec iv[5]; |
|
|
|
|
} |
} |
|
|
void |
void |
usage() |
usage(void) |
{ |
{ |
|
|
#ifdef YP |
#ifdef YP |