When installing the link to rcs2log, set the owner on the link itself
authormillert <millert@openbsd.org>
Thu, 16 Aug 2018 17:45:28 +0000 (17:45 +0000)
committermillert <millert@openbsd.org>
Thu, 16 Aug 2018 17:45:28 +0000 (17:45 +0000)
and not the file it points to.  OK deraadt@ tb@

gnu/usr.bin/cvs/contrib/Makefile.in

index a24816e..c2d2aee 100644 (file)
@@ -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)'`; \