bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dotfiles on VMS (patch)


From: Karsten Spang
Subject: Dotfiles on VMS (patch)
Date: Wed, 22 May 2002 11:22:54 +0200


CVS 1.11.2 is unable to read "dotfiles" in the home directory on VMS,
most notably ~/.cvsrc and ~/.cvsignore. For some the reason, these
fixes were already done for ~/.cvspass, but not for the above files.
The following three patches to 1.11.2 fixes these problems, as well
as for ~/.cvswrappers. Note that this does not necessarily imply that
CVS wrappers work on VMS.

Med venlig hilsen / Best regards
Dan Net A/S

Karsten Spang
Systemudvikler

=====================================================
Email from Dan Net A/S
Advanced solutions for Data Clearing, e- & m-business

Dan Net A/S             Tel:    +45 4582 1600
Blokken 9               Direct: +45 4590 2189
DK-3460 Birkeroed       Fax:    +45 4582 1644
Denmark                

http://www.dannet.com
=====================================================

$ diff -c cvsrc.c;1 cvsrc.c
*** cvsrc.c;1   Wed Dec 23 16:15:00 1998
--- cvsrc.c     Tue May 21 16:14:18 2002
***************
*** 75,81 ****
--- 75,83 ----

      homeinit = (char *) xmalloc (strlen (homedir) + strlen (cvsrc) + 10);
      strcpy (homeinit, homedir);
+ #ifndef NO_SLASH_AFTER_HOME
      strcat (homeinit, "/");
+ #endif
      strcat (homeinit, cvsrc);

      /* if it can't be read, there's no point to continuing */
$ diff -c ignore.c;1 ignore.c
*** ignore.c;1  Wed Apr  4 18:52:55 2001
--- ignore.c    Tue May 21 16:14:57 2002
***************
*** 90,96 ****
--- 90,100 ----
      if (home_dir)
      {
        char *file = xmalloc (strlen (home_dir) + sizeof (CVSDOTIGNORE) + 10);
+ #ifndef NO_SLASH_AFTER_HOME
        (void) sprintf (file, "%s/%s", home_dir, CVSDOTIGNORE);
+ #else
+       (void) sprintf (file, "%s%s", home_dir, CVSDOTIGNORE);
+ #endif
        ign_add_file (file, 0);
        free (file);
      }
$ diff -c wrapper.c;1 wrapper.c
*** wrapper.c;1 Tue Oct 23 23:07:05 2001
--- wrapper.c   Tue May 21 16:13:28 2002
***************
*** 128,134 ****
--- 128,138 ----
        char *file;

        file = xmalloc (strlen (homedir) + sizeof (CVSDOTWRAPPER) + 10);
+ #ifdef NO_SLASH_AFTER_HOME
+       (void) sprintf (file, "%s%s", homedir, CVSDOTWRAPPER);
+ #else
        (void) sprintf (file, "%s/%s", homedir, CVSDOTWRAPPER);
+ #endif
        if (isfile (file))
        {
            wrap_add_file (file, 0);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]