]> git.pld-linux.org Git - packages/cvs.git/blob - cvs-cvspass.patch
2cd7d48e038e91ed6b5f419f86b34e028aa21bfb
[packages/cvs.git] / cvs-cvspass.patch
1 --- cvs-1.11.2/src/login.c.orig Thu Sep  6 18:18:29 2001
2 +++ cvs-1.11.2/src/login.c      Sat Apr 20 00:13:24 2002
3 @@ -322,8 +322,18 @@
4      fp = CVS_FOPEN (passfile, "r");
5      if (fp == NULL)
6      {
7 -       error (0, errno, "warning: failed to open %s for reading", passfile);
8 -       goto process;
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.041795 seconds and 2 git commands to generate.