Source-Changes-HG archive

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

[src/netbsd-1-4]: src/usr.bin/vi/ex Pull up revision 1.10 (requested by chopps):



details:   https://anonhg.NetBSD.org/src/rev/cf6246172de5
branches:  netbsd-1-4
changeset: 469746:cf6246172de5
user:      he <he%NetBSD.org@localhost>
date:      Sat Nov 27 15:17:31 1999 +0000

description:
Pull up revision 1.10 (requested by chopps):
  Fix vi to handle tags files with relative paths in them.

diffstat:

 usr.bin/vi/ex/ex_tag.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (22 lines):

diff -r ecbc4a53f261 -r cf6246172de5 usr.bin/vi/ex/ex_tag.c
--- a/usr.bin/vi/ex/ex_tag.c    Sat Nov 27 15:11:28 1999 +0000
+++ b/usr.bin/vi/ex/ex_tag.c    Sat Nov 27 15:17:31 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ex_tag.c,v 1.9 1999/01/08 06:16:55 abs Exp $   */
+/*     $NetBSD: ex_tag.c,v 1.9.2.1 1999/11/27 15:17:31 he Exp $        */
 
 /*-
  * Copyright (c) 1992, 1993, 1994
@@ -1345,11 +1345,11 @@
            stat(name, &sb) && (p = strrchr(tfp->name, '/')) != NULL) {
                *p = '\0';
                len = snprintf(buf, sizeof(buf), "%s/%s", tfp->name, name);
-               *p = '/';
                if (stat(buf, &sb) == 0) {
                        *dirp = tfp->name;
                        *dlenp = strlen(*dirp);
                }
+               *p = '/';
        }
 }
 



Home | Main Index | Thread Index | Old Index