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 tools build.
details: https://anonhg.NetBSD.org/src/rev/b58a68bd79ed
branches: trunk
changeset: 335784:b58a68bd79ed
user: christos <christos%NetBSD.org@localhost>
date: Fri Jan 23 20:28:24 2015 +0000
description:
fix tools build.
diffstat:
usr.sbin/mtree/verify.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (31 lines):
diff -r de5084b2cdcd -r b58a68bd79ed usr.sbin/mtree/verify.c
--- a/usr.sbin/mtree/verify.c Fri Jan 23 18:48:56 2015 +0000
+++ b/usr.sbin/mtree/verify.c Fri Jan 23 20:28:24 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: verify.c,v 1.45 2015/01/23 02:27:01 christos Exp $ */
+/* $NetBSD: verify.c,v 1.46 2015/01/23 20:28:24 christos Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)verify.c 8.1 (Berkeley) 6/6/93";
#else
-__RCSID("$NetBSD: verify.c,v 1.45 2015/01/23 02:27:01 christos Exp $");
+__RCSID("$NetBSD: verify.c,v 1.46 2015/01/23 20:28:24 christos Exp $");
#endif
#endif /* not lint */
@@ -149,10 +149,12 @@
if (!eflag && !(dflag && p->fts_info == FTS_SL)) {
printf("extra: %s", RP(p));
if (rflag) {
+#if HAVE_STRUCT_STAT_ST_FLAGS
if (rflag > 1 &&
lchflags(p->fts_accpath, 0) == -1)
printf(" (chflags %s)",
strerror(errno));
+#endif
if ((S_ISDIR(p->fts_statp->st_mode)
? rmdir : unlink)(p->fts_accpath)) {
printf(", not removed: %s",
Home |
Main Index |
Thread Index |
Old Index