Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Aug 1999 04:51:58 -0700 (PDT)
From:      odip@bionet.nsc.ru
To:        freebsd-gnats-submit@freebsd.org
Subject:   ports/13114: [patch] security and file owner/group fix to libtool 1.3 port
Message-ID:  <19990813115158.A593D14D42@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         13114
>Category:       ports
>Synopsis:       [patch] security and file owner/group fix to libtool 1.3 port
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 13 05:00:00 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Grigorovich
>Release:        FreeBSD 3.2-RELEASE
>Organization:
ICiG
>Environment:
FreeBSD ghost.bionet.nsc.ru 3.2-RELEASE FreeBSD 3.2-RELEASE #0: Sun Jul 25 01:58:38 NOVST 1999     root@ghost.bionet.nsc.ru:/usr/src/sys/compile/ODIP  i386
>Description:
In libtool-1.3 port some files installed via poor script
There are two problems after install:
1) directory /usr/local/share/libtool/libltdl have permissions 777
2) files in this directory have randomly uig/gid,
depending of the source permissions
>How-To-Repeat:
build and install libtool-1.3 port

cd /usr/local/share/libtool/
ls -la libltdl

>Fix:
add file "patch-af" to port libtool-1.3:

--- libltdl/Makefile.in.orig    Thu Apr 29 20:28:34 1999
+++ libltdl/Makefile.in Fri Aug 13 12:44:32 1999
@@ -336,17 +336,16 @@
 distdir: $(DISTFILES)
        -rm -rf $(distdir)
        mkdir $(distdir)
-       -chmod 777 $(distdir)
+       -chmod 555 $(distdir)
        @for file in $(DISTFILES); do \
          d=$(srcdir); \
          if test -d $$d/$$file; then \
-           cp -pr $$d/$$file $(distdir)/$$file; \
+           echo no copy dir $$d/$$file; \
          else \
-           test -f $(distdir)/$$file \
-           || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
-           || cp -p $$d/$$file $(distdir)/$$file || :; \
+           install -c -o root -g wheel -m 444 $$d/$$file $(distdir)/$$file; \
          fi; \
        done
+       -chmod a+x $(distdir)/configure
 info-am:
 info: info-am


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990813115158.A593D14D42>