Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/mtree Fix errors in previous: "optional" and "ignor...
details: https://anonhg.NetBSD.org/src/rev/b9fb53577db1
branches: trunk
changeset: 747580:b9fb53577db1
user: apb <apb%NetBSD.org@localhost>
date: Tue Sep 22 04:38:21 2009 +0000
description:
Fix errors in previous: "optional" and "ignore" keywords also need the
appendfield treatment.
diffstat:
usr.sbin/mtree/spec.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r 7c44c35d5283 -r b9fb53577db1 usr.sbin/mtree/spec.c
--- a/usr.sbin/mtree/spec.c Tue Sep 22 02:50:11 2009 +0000
+++ b/usr.sbin/mtree/spec.c Tue Sep 22 04:38:21 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: spec.c,v 1.77 2009/09/19 21:41:43 apb Exp $ */
+/* $NetBSD: spec.c,v 1.78 2009/09/22 04:38:21 apb Exp $ */
/*-
* Copyright (c) 1989, 1993
@@ -67,7 +67,7 @@
#if 0
static char sccsid[] = "@(#)spec.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: spec.c,v 1.77 2009/09/19 21:41:43 apb Exp $");
+__RCSID("$NetBSD: spec.c,v 1.78 2009/09/22 04:38:21 apb Exp $");
#endif
#endif /* not lint */
@@ -381,9 +381,9 @@
free(str);
}
if (MATCHFLAG(F_IGN))
- printf("ignore ");
+ appendfield(pathlast, "ignore");
if (MATCHFLAG(F_OPT))
- printf("optional ");
+ appendfield(pathlast, "optional");
if (MATCHFLAG(F_TAGS)) {
/* don't output leading or trailing commas */
p = cur->tags;
Home |
Main Index |
Thread Index |
Old Index