]> git.pld-linux.org Git - packages/cvs.git/blame - cvs-cvspass.patch
- updated cvs-acl.patch
[packages/cvs.git] / cvs-cvspass.patch
CommitLineData
87b758f5 1--- cvs-1.11.1p1/src/login.c.bero Tue Jul 31 18:12:58 2001
2+++ cvs-1.11.1p1/src/login.c Tue Jul 31 18:17:32 2001
a6d1728f
AM
3@@ -322,8 +322,18 @@
4 fp = CVS_FOPEN (passfile, "r");
5 if (fp == NULL)
6 {
12ed934c 7- error (0, errno, "warning: failed to open %s for reading", passfile);
8- goto process;
87b758f5 9+ /* The password file doesn't exist yet - probably because it's
10+ * the first time someone uses cvs login. Create it.
11+ */
12+ fp = CVS_FOPEN (passfile, "w");
13+ fclose (fp);
14+ fp = CVS_FOPEN (passfile, "r");
15+ if (fp == NULL)
16+ {
17+ /* Creating the password file didn't work. Bail out. */
18+ error (0, errno, "warning: failed to open %s for reading", passfile);
19+ goto process;
20+ }
a6d1728f
AM
21 }
22
23 cvsroot_canonical = normalize_cvsroot (root);
This page took 0.087079 seconds and 4 git commands to generate.