diff options
author | phk <phk@FreeBSD.org> | 2000-10-06 12:27:36 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2000-10-06 12:27:36 +0000 |
commit | 2e5c04d01b54248c5190be0ddb1d2bea0a53217d (patch) | |
tree | bc96e35bbb92d58ebf6aceff69d573c4acd8b0f9 /usr.sbin/mtree | |
parent | d021730618104ab174a87b6e451c53d7d6debf2d (diff) | |
download | FreeBSD-src-2e5c04d01b54248c5190be0ddb1d2bea0a53217d.zip FreeBSD-src-2e5c04d01b54248c5190be0ddb1d2bea0a53217d.tar.gz |
Don't whine about modes on symlinks.
Diffstat (limited to 'usr.sbin/mtree')
-rw-r--r-- | usr.sbin/mtree/compare.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/mtree/compare.c b/usr.sbin/mtree/compare.c index b12f3fa..caaaff5 100644 --- a/usr.sbin/mtree/compare.c +++ b/usr.sbin/mtree/compare.c @@ -148,6 +148,7 @@ typeerr: LABEL; tab = "\t"; } if (s->flags & F_MODE && + !S_ISLNK(p->fts_statp->st_mode) && s->st_mode != (p->fts_statp->st_mode & MBITS)) { LABEL; (void)printf("%spermissions expected %#o found %#o", |