Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Sep 2001 07:30:09 +0000
From:      Tony Finch <dot@dotat.at>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   gnu/30666: 
Message-ID:  <E15jbo9-0000n6-00@hand.dotat.at>

next in thread | raw e-mail | index | archive | help

>Number:         30666
>Category:       gnu
>Synopsis:       
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 19 00:40:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Tony Finch
>Release:        FreeBSD 4.4-STABLE-20010916 i386
>Organization:
dotat labs
>Environment:
System: FreeBSD hand.dotat.at 4.4-STABLE-20010916 FreeBSD 4.4-STABLE-20010916 #5: Mon Sep 17 00:22:44 GMT 2001 fanf@hand.dotat.at:/FreeBSD/obj/FreeBSD/releng4/sys/SHARP i386
>Description:
ident(1) only recognizes rcs keywords consisting purely of letters.
The XFree86 project uses rcs tags with digits in them, so ident(1)
doesn't work with them.
>How-To-Repeat:
fanf@hand.dotat.at:/usr/X11R6/include/X11
:; ident X.h
X.h:
     $Xorg: X.h,v 1.3 2000/08/18 04:05:43 coskrey Exp $
fanf@hand.dotat.at:/usr/X11R6/include/X11
:; grep XFree86 X.h
/* $XFree86: xc/include/X.h,v 1.4 2001/01/17 17:53:09 dawes Exp $ */

>Fix:

Index: ident.c
===================================================================
RCS file: /home/ncvs/src/gnu/usr.bin/rcs/ident/ident.c,v
retrieving revision 1.7
diff -u -u -r1.7 ident.c
--- ident.c	1999/08/27 23:36:42	1.7
+++ ident.c	2001/09/19 07:25:19
@@ -233,7 +233,7 @@
       if (c == EOF  &&  feof(fp) | ferror(fp))
 	 return c;
       switch (ctab[c]) {
-	 case LETTER: case Letter:
+        case LETTER: case Letter: case DIGIT:
 	    *tp++ = c;
 	    if (tp < line+sizeof(line)-4)
 	       break;
>Release-Note:
>Audit-Trail:
>Unformatted:
 	[PATCH] ident(1) doesn't work on XFree86 source files

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E15jbo9-0000n6-00>