From: millert Date: Thu, 16 Aug 2018 17:45:28 +0000 (+0000) Subject: When installing the link to rcs2log, set the owner on the link itself X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=5ec93984946a8c07d741d0accf10bf87d03c98a0;p=openbsd When installing the link to rcs2log, set the owner on the link itself and not the file it points to. OK deraadt@ tb@ --- diff --git a/gnu/usr.bin/cvs/contrib/Makefile.in b/gnu/usr.bin/cvs/contrib/Makefile.in index a24816eba1b..c2d2aee8f07 100644 --- a/gnu/usr.bin/cvs/contrib/Makefile.in +++ b/gnu/usr.bin/cvs/contrib/Makefile.in @@ -364,7 +364,7 @@ install-data-local: echo " && cd $(DESTDIR)$(bindir) && $(LN_S) $(contribscriptdir)/`echo $$p|sed '$(transform)'` ."; \ (test ! -e $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'` \ && cd $(DESTDIR)$(bindir) && $(LN_S) $(contribscriptdir)/`echo $$p|sed '$(transform)'` . \ - && chown root:bin `echo $$p|sed '$(transform)'`) \ + && chown -h root:bin `echo $$p|sed '$(transform)'`) \ || (echo "Link creation failed" && if test -f $$p; then \ echo " $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \ $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \