]> git.pld-linux.org Git - packages/cvs.git/blame - cvs-cvspass.patch
- cvspass + timestamp fixes; release 7
[packages/cvs.git] / cvs-cvspass.patch
CommitLineData
a6d1728f
AM
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
3@@ -322,8 +322,18 @@
4 fp = CVS_FOPEN (passfile, "r");
5 if (fp == NULL)
6 {
7- error (0, errno, "failed to open %s for reading", passfile);
8- goto error_exit;
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, "failed to open %s for reading", passfile);
19+ goto error_exit;
20+ }
21 }
22
23 cvsroot_canonical = normalize_cvsroot (root);
24--- cvs-1.11.1p1/src/logmsg.c.bero Tue Jul 31 18:12:00 2001
25+++ cvs-1.11.1p1/src/logmsg.c Tue Jul 31 18:12:21 2001
26@@ -247,7 +247,7 @@
27 }
28
29 (void) fprintf (fp,
30- "%s----------------------------------------------------------------------\n",
31+ "\n%s----------------------------------------------------------------------\n",
32 CVSEDITPREFIX);
33 (void) fprintf (fp,
34 "%sEnter Log. Lines beginning with `%.*s' are removed automatically\n%s\n",
This page took 0.322128 seconds and 4 git commands to generate.