Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/usr.sbin/mtree Pull up revision 1.17 (requested by wenn...
details: https://anonhg.NetBSD.org/src/rev/feadb2345475
branches: netbsd-1-4
changeset: 469713:feadb2345475
user: he <he%NetBSD.org@localhost>
date: Sat Nov 20 16:59:33 1999 +0000
description:
Pull up revision 1.17 (requested by wennmach and joda):
Make mtree able to properly encode file names with `funny' albeit
legal characters (`#', ` ', binary characters), fixing PR#5006 and
PR#7663.
diffstat:
usr.sbin/mtree/spec.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r e953f1497103 -r feadb2345475 usr.sbin/mtree/spec.c
--- a/usr.sbin/mtree/spec.c Sat Nov 20 16:59:11 1999 +0000
+++ b/usr.sbin/mtree/spec.c Sat Nov 20 16:59:33 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: spec.c,v 1.16 1998/12/19 15:38:45 christos Exp $ */
+/* $NetBSD: spec.c,v 1.16.2.1 1999/11/20 16:59:33 he Exp $ */
/*-
* Copyright (c) 1989, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)spec.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: spec.c,v 1.16 1998/12/19 15:38:45 christos Exp $");
+__RCSID("$NetBSD: spec.c,v 1.16.2.1 1999/11/20 16:59:33 he Exp $");
#endif
#endif /* not lint */
@@ -147,7 +147,7 @@
if ((centry = calloc(1, sizeof(NODE) + strlen(p))) == NULL)
mtree_err("%s", strerror(errno));
*centry = ginfo;
- (void)strcpy(centry->name, p);
+ (void)decode(centry->name, p);
#define MAGIC "?*["
if (strpbrk(p, MAGIC))
centry->flags |= F_MAGIC;
Home |
Main Index |
Thread Index |
Old Index