Lines Matching refs:passfile
44 char *passfile;
47 if ((passfile = getenv ("CVS_PASSFILE")) != NULL)
48 return xstrdup (passfile);
66 passfile = strcat_filename_onto_homedir (homedir, CVS_PASSWORD_FILE);
69 if (isfile (passfile))
71 chmod (passfile, 0600);
73 return passfile;
283 char *passfile;
308 passfile = construct_cvspass_filename ();
309 fp = CVS_FOPEN (passfile, "r");
312 error (0, errno, "warning: failed to open %s for reading", passfile);
329 error (0, errno, "cannot read %s", passfile);
334 error (0, errno, "cannot close %s", passfile);
338 chmod (passfile, 0600);
380 fp = CVS_FOPEN (passfile, "r");
382 error (1, errno, "failed to open %s for reading", passfile);
417 error (0, errno, "cannot read %s", passfile);
422 error (0, errno, "cannot close %s", passfile);
441 copy_file (tmp_name, passfile);
453 if ((fp = CVS_FOPEN (passfile, "a")) == NULL)
454 error (1, errno, "could not open %s for writing", passfile);
457 error (1, errno, "cannot write %s", passfile);
459 error (1, errno, "cannot close %s", passfile);
463 chmod (passfile, 0600);
475 free (passfile);
489 chmod (passfile, 0600);
491 error (0, errno, "cannot close %s", passfile);
497 free (passfile);