[OpenAFS-devel] rev 1.11 of vlprocs - the posix regex diff, breaks redhat9 builds
Nathan Neulinger
nneul@umr.edu
Wed, 12 Nov 2003 08:12:58 -0600
----------------------------
revision 1.11
date: 2003/10/10 14:08:32; author: rees; state: Exp; lines: +39 -1
DELTA use-posix-regex-20031010
AUTHOR wollman@khavrinen.lcs.mit.edu
use posix regex if available instead of re_comp
eliminates need for -lcompat on the BSDs, so remove it from XLIBS
There is no header defining REG_BASIC anywhere on the system.
I believe this is functionally equivalent since REG_BASIC is the default
behavior:
Index: vlserver/vlprocs.c
===================================================================
RCS file: /cvs/openafs/src/vlserver/vlprocs.c,v
retrieving revision 1.11
diff -u -r1.11 vlprocs.c
--- vlserver/vlprocs.c 10 Oct 2003 14:08:32 -0000 1.11
+++ vlserver/vlprocs.c 12 Nov 2003 14:12:29 -0000
@@ -1441,7 +1441,7 @@
if (name && (strcmp(name, ".*") != 0) && (strcmp(name, "") !=
0)) {
sprintf(volumename, "^%s$", name);
#ifdef HAVE_POSIX_REGEX
- if (regcomp(&re, volumename, REG_BASIC | REG_NOSUB) != 0) {
+ if (regcomp(&re, volumename, REG_NOSUB) != 0) {
errorcode = VL_BADNAME;
goto done;
}
--
------------------------------------------------------------
Nathan Neulinger EMail: nneul@umr.edu
University of Missouri - Rolla Phone: (573) 341-6679
UMR Information Technology Fax: (573) 341-4216