Return to chpass.c CVS log | Up to [local] / src / usr.bin / chpass |
version 1.27, 2003/06/03 02:56:06 | version 1.28, 2003/07/01 01:01:28 | ||
---|---|---|---|
|
|
||
#include <err.h> | #include <err.h> | ||
#include <errno.h> | #include <errno.h> | ||
#include <fcntl.h> | #include <fcntl.h> | ||
#include <paths.h> | |||
#include <pwd.h> | #include <pwd.h> | ||
#include <signal.h> | #include <signal.h> | ||
#include <stdio.h> | #include <stdio.h> | ||
|
|
||
#include <util.h> | #include <util.h> | ||
#include "chpass.h" | #include "chpass.h" | ||
#include "pathnames.h" | |||
extern char *__progname; | extern char *__progname; | ||
|
|
||
/* Edit the user passwd information if requested. */ | /* Edit the user passwd information if requested. */ | ||
if (op == EDITENTRY) { | if (op == EDITENTRY) { | ||
char tempname[] = __CONCAT(_PATH_VARTMP,"pw.XXXXXXXX"); | char tempname[] = __CONCAT(_PATH_VARTMP,"pw.XXXXXXXXXX"); | ||
int edit_status; | int edit_status; | ||
dfd = mkstemp(tempname); | dfd = mkstemp(tempname); |