diff options
author | heinz <heinz@pkgsrc.org> | 2004-04-16 23:43:36 +0000 |
---|---|---|
committer | heinz <heinz@pkgsrc.org> | 2004-04-16 23:43:36 +0000 |
commit | e1cd632373982162e802a23c22f22d00b4322a34 (patch) | |
tree | ef5fd54de5ce7520bf5876e873b1d9e47e65d22e /pkgtools/mtree/files/verify.c | |
parent | 689f3f2c2f293c6646004c48c753629493d1d18e (diff) | |
download | pkgsrc-e1cd632373982162e802a23c22f22d00b4322a34.tar.gz |
Introduce HAVE_FILE_FLAGS if the system declares UF_SETTABLE and SF_SETTABLE
in addition to member 'st_flags' of struct stat. Use HAVE_FILE_FLAGS instead
of HAVE_STRUCT_STAT_ST_FLAGS.
This avoids confusion on UnixWare which has 'st_flags' but does _not_ support
file flags.
Diffstat (limited to 'pkgtools/mtree/files/verify.c')
-rw-r--r-- | pkgtools/mtree/files/verify.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgtools/mtree/files/verify.c b/pkgtools/mtree/files/verify.c index 27c9c90ee09..0f233468be3 100644 --- a/pkgtools/mtree/files/verify.c +++ b/pkgtools/mtree/files/verify.c @@ -1,4 +1,4 @@ -/* $NetBSD: verify.c,v 1.2 2003/09/05 04:38:48 grant Exp $ */ +/* $NetBSD: verify.c,v 1.3 2004/04/16 23:43:36 heinz Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -40,7 +40,7 @@ #if 0 static char sccsid[] = "@(#)verify.c 8.1 (Berkeley) 6/6/93"; #else -__RCSID("$NetBSD: verify.c,v 1.2 2003/09/05 04:38:48 grant Exp $"); +__RCSID("$NetBSD: verify.c,v 1.3 2004/04/16 23:43:36 heinz Exp $"); #endif #endif /* not lint */ @@ -294,7 +294,7 @@ miss(NODE *p, char *tail) printf("%s: permissions not set: %s\n", path, strerror(errno)); } -#if HAVE_STRUCT_STAT_ST_FLAGS +#if HAVE_FILE_FLAGS if ((p->flags & F_FLAGS) && p->st_flags) { if (iflag) flags = p->st_flags; @@ -304,6 +304,6 @@ miss(NODE *p, char *tail) printf("%s: file flags not set: %s\n", path, strerror(errno)); } -#endif /* HAVE_STRUCT_STAT_ST_FLAGS */ +#endif /* HAVE_FILE_FLAGS */ } } |