]> git.pld-linux.org Git - packages/cvs.git/commitdiff
new; as U can see works fine ;-)
authorTomek Orzechowski <orzech@pld-linux.org>
Sat, 1 Jun 2002 23:01:57 +0000 (23:01 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cvs-home_etc.patch -> 1.1

cvs-home_etc.patch [new file with mode: 0644]

diff --git a/cvs-home_etc.patch b/cvs-home_etc.patch
new file mode 100644 (file)
index 0000000..8071ff1
--- /dev/null
@@ -0,0 +1,37 @@
+diff -ruN cvs-1.11.2.org/src/login.c cvs-1.11.2/src/login.c
+--- cvs-1.11.2.org/src/login.c Sat Jun  1 23:47:43 2002
++++ cvs-1.11.2/src/login.c     Sat Jun  1 23:49:12 2002
+@@ -30,7 +30,7 @@
+ #endif
+ #ifndef CVS_PASSWORD_FILE 
+-#define CVS_PASSWORD_FILE ".cvspass"
++#define CVS_PASSWORD_FILE "cvspass"
+ #endif
+ /* If non-NULL, get_cvs_password() will just return this. */
+@@ -65,8 +65,13 @@
+       return (char *) NULL;
+     }
++    if (getenv("CONFIG_DIR")) {
++      passfile = (char *) xmalloc (strlen (homedir) + strlen (getenv("CONFIG_DIR")) + strlen (CVS_PASSWORD_FILE) + 4);
++      sprintf (passfile, "%s/%s/%s", homedir, getenv("CONFIG_DIR"), CVS_PASSWORD_FILE);
++    }
++    else {
+     passfile =
+-      (char *) xmalloc (strlen (homedir) + strlen (CVS_PASSWORD_FILE) + 3);
++        (char *) xmalloc (strlen (homedir) + strlen (CVS_PASSWORD_FILE) + 4);
+     strcpy (passfile, homedir);
+ #ifndef NO_SLASH_AFTER_HOME
+     /* NO_SLASH_AFTER_HOME is defined for VMS, where foo:[bar]/.cvspass is not
+@@ -75,7 +80,9 @@
+        kind of thing....  */
+     strcat (passfile, "/");
+ #endif
++    strcat (passfile, ".");
+     strcat (passfile, CVS_PASSWORD_FILE);
++    }
+     /* Safety first and last, Scouts. */
+     if (isfile (passfile))
This page took 0.040569 seconds and 4 git commands to generate.