[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug in find.c
From: |
Shigio Yamaguchi |
Subject: |
Re: Bug in find.c |
Date: |
Thu, 07 Nov 2002 13:32:47 +0900 |
Hello,
> diff -ru global-4.5/libutil/find.c global-4.5-pcl/libutil/find.c
> --- global-4.5/libutil/find.c 2002-07-04 06:39:21.000000000 -0700
> +++ global-4.5-pcl/libutil/find.c 2002-11-06 12:20:09.000000000 -0800
> @@ -138,7 +138,6 @@
> char *p;
> =20
> for (p =3D suffp; *p && *p !=3D ','; p++) {
> - strbuf_putc(sb, '\\');
> strbuf_putc(sb, *p);
> }
> if (!*p)
>
>
> I had added "mnb" to my file suffix list, and the files weren't being =
> found. Escaping every char in the regex appeared to be the problem, so I =
> removed it.
>
> Let me know if that was actually the problem.
I think I have already fix this bug.
The next version of GLOBAL will include this code.
% cvs diff -c -r1.20 -r1.21 find.c
Index: find.c
===================================================================
RCS file: /cvsroot/global/global/libutil/find.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -c -r1.20 -r1.21
*** find.c 5 Jul 2002 07:16:47 -0000 1.20
--- find.c 14 Sep 2002 11:53:03 -0000 1.21
***************
*** 136,142 ****
char *p;
for (p = suffp; *p && *p != ','; p++) {
! strbuf_putc(sb, '\\');
strbuf_putc(sb, *p);
}
if (!*p)
--- 136,143 ----
char *p;
for (p = suffp; *p && *p != ','; p++) {
! if (!isalnum(*p))
! strbuf_putc(sb, '\\');
strbuf_putc(sb, *p);
}
if (!*p)
--
Shigio Yamaguchi <address@hidden> - Tama Communications Corporation
Spare mail address: <address@hidden>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663 C4B6 3CA5 BBB3 57BE DDA3
- Bug in find.c, Bakken, Luke, 2002/11/06
- Re: Bug in find.c,
Shigio Yamaguchi <=