Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Apr 2005 20:51:07 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/79652: openssh-askpass fails to install as non-root
Message-ID:  <200504072051.j37Kp7rU038288@www.freebsd.org>
Resent-Message-ID: <200504072100.j37L0Gb3038679@freefall.freebsd.org>

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

>Number:         79652
>Category:       ports
>Synopsis:       openssh-askpass fails to install as non-root
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 07 21:00:16 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     John Baldwin
>Release:        6.0-CURRENT
>Organization:
>Environment:
n/a      
>Description:
The pre-install target is run as the user that invoked 'make install'.  If this user is not root, they can't create files or directories under ${PREFIX}.      
>How-To-Repeat:
      
>Fix:
Use pre-su-install instead:

Index: Makefile
===================================================================
RCS file: /usr/cvs/ports/security/openssh-askpass/Makefile,v
retrieving revision 1.11
diff -u -r1.11 Makefile
--- Makefile    8 Feb 2004 06:48:19 -0000       1.11
+++ Makefile    6 Apr 2005 14:12:30 -0000
@@ -26,7 +26,7 @@
        ${ECHO_MSG} ">> \"${DISTNAME}.tar.gz\"."; \
        ${TAR} cfz ${DISTNAME}.tar.gz ${DISTNAME}

-pre-install:
+pre-su-install:
        ${MKDIR} ${PREFIX}/share/doc/ssh-askpass
        ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/ssh-askpass/


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



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