]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Use Posix regex(3) within src/bucoord/commands.c
authorHans-Werner Paulsen <hans@MPA-Garching.MPG.DE>
Mon, 20 Jul 2009 10:06:23 +0000 (12:06 +0200)
committerRuss Allbery <rra@stanford.edu>
Wed, 22 Jul 2009 17:18:00 +0000 (10:18 -0700)
commitfc695707f87143f2bfefd1260560cd6fdef613c0
tree67f4243f4773c21d41ac29444533d4837e4b58a3
parent05ee0932fa3d56193b9cbd235c5faa33fe02876d
Use Posix regex(3) within src/bucoord/commands.c

Normally pattern matching against volume names is done on the server, but
if this fails, the client (src/bucoord/commands.c) is doing this.
This program had no code to use regex(3) when HAVE_POSIX_REGEX is defined.
This patch adds calls to regex(3) if HAVE_POSIX_REGEX is defined.
For systems without POSIX regex there were two (slightly different)
implementations in src/bucoord/regex.c and src/util/regex.c. The newer
version src/bucoord/regex.c has been modified and moved to src/util/regex.c.
Some header files and Makefiles have been removed/updated to work with this
setup.

Reviewed-on: http://gerrit.openafs.org/http://gerrit.openafs.org/99
Tested-by: Russ Allbery <rra@stanford.edu>
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/bucoord/Makefile.in
src/bucoord/NTMakefile
src/bucoord/commands.c
src/bucoord/regex.c [deleted file]
src/bucoord/regex.h [deleted file]
src/util/afsutil.h
src/util/regex.c