Displaying 1 result from an estimated 1 matches for "mystderr".
2002 Nov 25
0
Linux and Samba Code
...uot;/usr/bin/passwd_old"
#define SMBPASSWD "/usr/bin/smbpasswd_old"
#define PROMPT1 "Type a new password: "
#define PROMPT2 "Type the same password again: "
#define MINPWLEN 6
#define STRLEN 1024
int change(char *program, char *user, char *pwd, FILE *mystderr);
int main (
int argc,
char **argv)
{
int fd;
struct passwd *pwentry;
char name[STRLEN];
char newpw[STRLEN];
int reallyroot = 0;
char *cp;
FILE *mystderr;
/* do we have the appropriate permissions? */
if (geteuid() != 0) {
fpri...