From bb55718401f0732ce0a3749f82d6cb6cbbc4a2c6 Mon Sep 17 00:00:00 2001 From: Peter Avalos Date: Tue, 11 Nov 2008 05:53:07 +0000 Subject: [PATCH] Conditionalize the lchflags() call since chflags(1) is a bootstrap tool. --- usr.bin/chflags/chflags.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usr.bin/chflags/chflags.c b/usr.bin/chflags/chflags.c index 528714cb54..606980d7c0 100644 --- a/usr.bin/chflags/chflags.c +++ b/usr.bin/chflags/chflags.c @@ -33,9 +33,10 @@ * @(#) Copyright (c) 1992, 1993, 1994 The Regents of the University of California. All rights reserved. * @(#)chflags.c 8.5 (Berkeley) 4/1/94 * $FreeBSD: src/usr.bin/chflags/chflags.c,v 1.7.2.3 2001/08/01 23:09:18 obrien Exp $ - * $DragonFly: src/usr.bin/chflags/chflags.c,v 1.6 2008/11/11 02:55:13 pavalos Exp $ + * $DragonFly: src/usr.bin/chflags/chflags.c,v 1.7 2008/11/11 05:53:07 pavalos Exp $ */ +#include #include #include @@ -104,9 +105,11 @@ main(int argc, char **argv) } else fts_options = FTS_LOGICAL; +#if __DragonFly_version >= 200101 if (hflag) change_flags = lchflags; else +#endif change_flags = chflags; flags = *argv; -- 2.11.4.GIT