Module Name: src
Committed By: apb
Date: Tue Sep 22 04:38:21 UTC 2009
Modified Files:
src/usr.sbin/mtree: spec.c
Log Message:
Fix errors in previous: "optional" and "ignore" keywords also need the
appendfield treatment.
To generate a diff of this commit:
cvs rdiff -u -r1.77 -r1.78 src/usr.sbin/mtree/spec.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/mtree/spec.c
diff -u src/usr.sbin/mtree/spec.c:1.77 src/usr.sbin/mtree/spec.c:1.78
--- src/usr.sbin/mtree/spec.c:1.77 Sat Sep 19 21:41:43 2009
+++ src/usr.sbin/mtree/spec.c Tue Sep 22 04:38:21 2009
@@ -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;