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