From 5a8d448792368366f358d41e1a67853468e5fc92 Mon Sep 17 00:00:00 2001 From: James Youngman Date: Sun, 16 Aug 2009 16:15:25 +0100 Subject: [PATCH] lib/check-regexprops.sh portability fixes for FreeBSD. To: address@hidden * lib/check-regexprops.sh: Portability fixes for FreeBSD (mktemp requires an argument, dialect differences in sed regexes). Signed-off-by: James Youngman --- ChangeLog | 12 ++++++++++++ lib/check-regexprops.sh | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 950f0a4..1e8a4a3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +2009-08-16 James Youngman + + * lib/check-regexprops.sh: Portability fixes for FreeBSD (mktemp + requires an argument, dialect differences in sed regexes). + + Bugfixes to the handling of %Z in the Red Hat SELinux patch. + * find/pred.c (do_fprintf): If getfilecon fails, print the + relevant segment anyway, with the file context expanding to an + empty string. + * find/parser.c (make_segment): For %Z, set the cost to + NeedsAccessInfo. + 2009-08-15 James Youngman * import-gnulib.config (gnulib_version): Update to the current diff --git a/lib/check-regexprops.sh b/lib/check-regexprops.sh index 7da5b67..c245759 100755 --- a/lib/check-regexprops.sh +++ b/lib/check-regexprops.sh @@ -12,10 +12,10 @@ esac save_output="regexprops.texi.new" rv=1 -if output_file=`mktemp` +if output_file=`mktemp ${TMPDIR:-/tmp}/check-regexprops.XXXXXX` then ${REGEXPROPS} "Regular Expressions" findutils | - sed -e 's/[ ]\+$//' >| "${output_file}" + sed -e 's/[ ][ ]*$//' >| "${output_file}" if cmp "${existing}" "${output_file}" ; then echo "${existing} is up to date." rv=0 -- 1.5.6.5