summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--share/mk/bsd.obj.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/mk/bsd.obj.mk b/share/mk/bsd.obj.mk
index 1635d7cd8d3..d5261661e49 100644
--- a/share/mk/bsd.obj.mk
+++ b/share/mk/bsd.obj.mk
@@ -1,4 +1,4 @@
-# $OpenBSD: bsd.obj.mk,v 1.16 2016/11/19 14:20:58 tb Exp $
+# $OpenBSD: bsd.obj.mk,v 1.17 2017/01/21 06:55:52 tb Exp $
# $NetBSD: bsd.obj.mk,v 1.9 1996/04/10 21:08:05 thorpej Exp $
.if !target(obj)
@@ -27,7 +27,7 @@ obj! _SUBDIRUSE
}; \
MKDIRS=_mkdirs; \
fi; \
- elif [[ $$here == $$subdir ]]; then \
+ elif [[ `id` == *'('${WOBJGROUP}')'* && $$here == $$subdir ]]; then \
SETOWNER="chown :${WOBJGROUP}"; \
else \
SETOWNER=:; \