Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/sets Unbreak syspkg by escaping '[' by vis(1) to mat...
details: https://anonhg.NetBSD.org/src/rev/96e1a14c8386
branches: trunk
changeset: 329440:96e1a14c8386
user: uebayasi <uebayasi%NetBSD.org@localhost>
date: Sat May 24 13:27:13 2014 +0000
description:
Unbreak syspkg by escaping '[' by vis(1) to match the new mtree(8) format.
diffstat:
distrib/sets/regpkg | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diffs (34 lines):
diff -r e04ae4b6e999 -r 96e1a14c8386 distrib/sets/regpkg
--- a/distrib/sets/regpkg Sat May 24 12:10:32 2014 +0000
+++ b/distrib/sets/regpkg Sat May 24 13:27:13 2014 +0000
@@ -1,6 +1,6 @@
#! /bin/sh
#
-# $NetBSD: regpkg,v 1.20 2012/11/03 07:59:46 mbalmer Exp $
+# $NetBSD: regpkg,v 1.21 2014/05/24 13:27:13 uebayasi Exp $
#
# Copyright (c) 2003,2009 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -628,7 +628,7 @@
# "@name" line and a lot of "@comment MD5:" lines.
#
{
- rcsid='$NetBSD: regpkg,v 1.20 2012/11/03 07:59:46 mbalmer Exp $'
+ rcsid='$NetBSD: regpkg,v 1.21 2014/05/24 13:27:13 uebayasi Exp $'
utcdate="$(${ENV_CMD} TZ=UTC LOCALE=C \
${DATE} '+%Y-%m-%d %H:%M')"
user="${USER:-root}"
@@ -803,7 +803,12 @@
/^@/ {next}
/^\.\// {print $0; next}
/./ {print "./" $0; next}' \
- <"${PLIST}" >"${spec1}"
+ <"${PLIST}" |
+ # Escape some characters to match the new mtree(8) format.
+ # C.f. usr.sbin/mtree/spec.c:vispath()
+ # XXX escape only '[' for now
+ vis -o -e '[' \
+ >"${spec1}"
# If metalog was specified, attributes from metalog override
# attributes in the file system. We also fake up an
Home |
Main Index |
Thread Index |
Old Index