summaryrefslogtreecommitdiff
path: root/bin/chmod
diff options
context:
space:
mode:
authorMartin Natano <natano@cvs.openbsd.org>2016-09-11 07:06:31 +0000
committerMartin Natano <natano@cvs.openbsd.org>2016-09-11 07:06:31 +0000
commit44436af1e13bd412899b5443f137cb545bbcbb48 (patch)
tree7e7cbd147a3242fb576025ebc45afa2b3a2c6f19 /bin/chmod
parent19a3dd78c524738cc68327ef98a5e3b06ebbba0e (diff)
Symlinks to binaries should belong to root:bin.
tweaks and ok guenther
Diffstat (limited to 'bin/chmod')
-rw-r--r--bin/chmod/Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/bin/chmod/Makefile b/bin/chmod/Makefile
index e9303ec65b9..27d54920d81 100644
--- a/bin/chmod/Makefile
+++ b/bin/chmod/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.7 2001/09/06 18:52:55 mickey Exp $
+# $OpenBSD: Makefile,v 1.8 2016/09/11 07:06:29 natano Exp $
PROG= chmod
CFLAGS+=-DSUPPORT_DOT
@@ -8,11 +8,13 @@ LINKS= ${BINDIR}/chmod ${BINDIR}/chgrp \
# XXX compatibility
afterinstall:
- (cd ${DESTDIR}/usr/sbin; \
- ln -sf ../../sbin/chown .; \
- ln -sf ../../bin/chgrp .)
- (cd ${DESTDIR}/usr/bin; \
- ln -sf ../../bin/chmod chflags)
+ (cd ${DESTDIR}/usr/sbin && \
+ ln -sf ../../sbin/chown . && \
+ ln -sf ../../bin/chgrp . && \
+ chown -h ${BINOWN}:${BINGRP} chown chgrp)
+ (cd ${DESTDIR}/usr/bin && \
+ ln -sf ../../bin/chmod chflags && \
+ chown -h ${BINOWN}:${BINGRP} chflags)
.include <bsd.prog.mk>