]>
Commit | Line | Data |
---|---|---|
3a862a5e AM |
1 | # Print a clearer message if ~/.cvspass does not exist when cvs login is |
2 | # called. Closes: #168163. | |
3 | # | |
4 | # Patch by Steve McIntyre <steve@einval.com> | |
5 | diff -ruN cvs-1.12.13-old/src/login.c cvs-1.12.13/src/login.c | |
6 | --- cvs-1.12.13-old/src/login.c 2005-05-14 05:47:28.000000000 +0800 | |
7 | +++ cvs-1.12.13/src/login.c 2006-02-26 21:31:17.000000000 +0800 | |
8 | @@ -309,7 +309,10 @@ | |
9 | fp = CVS_FOPEN (passfile, "r"); | |
10 | if (fp == NULL) | |
11 | { | |
12 | - error (0, errno, "warning: failed to open %s for reading", passfile); | |
13 | + if (errno == ENOENT) | |
14 | + error (0, 0, "CVS password file %s does not exist - creating a new file", passfile); | |
15 | + else | |
16 | + error (0, errno, "warning: failed to open %s for reading", passfile); | |
17 | goto process; | |
18 | } | |
19 |