bugJailkit - Bugs: bug #40681, Bug - jk_jailuser.in - PREFIX is...


bug #40681: Bug - jk_jailuser.in - PREFIX is static even when using --prefix while configuration

Submitter:  Declercq Laurent <nuxwin>
Submitted:  Fri 22 Nov 2013 09:52:33 PM UTC
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment (Rich Markup)

Comment Type & Canned Response:
       No canned response available


Sat 21 Dec 2013 09:11:11 PM UTC, comment #1: 

thanks, committed!

Olivier Sessink <oli4>
Project Administrator
Fri 22 Nov 2013 09:52:33 PM UTC, original submission:  


All is in the title. When using the prefix option such as:

./configure --prefix=/usr/local

I would expect that the jk_jailuser.in script PREFIX variable value is /usr/local instead of /usr. Currently, this variable is never modified.

The following change do the job:

sed -e "s!INIPREFIX='/etc/jailkit'!INIPREFIX='${INIPREFIX}'!" \
    -e "s!LIBDIR='[a-z/]*'!LIBDIR='${PYLIBDIR}'!" \
    -e "s!EXEPREFIX='[a-z/]*'!EXEPREFIX='${PREFIX}'!" \
    -e "s:#!/usr/bin/python:#!$(PYTHONINTERPRETER):" < $< > $@

should be

sed -e "s!PREFIX='/usr'!PREFIX='${PREFIX}'!" \
    -e "s!INIPREFIX='/etc/jailkit'!INIPREFIX='${INIPREFIX}'!" \
    -e "s!LIBDIR='[a-z/]*'!LIBDIR='${PYLIBDIR}'!" \
    -e "s!EXEPREFIX='[a-z/]*'!EXEPREFIX='${PREFIX}'!" \
    -e "s:#!/usr/bin/python:#!$(PYTHONINTERPRETER):" < $< > $@

Thanks you.

Declercq Laurent <nuxwin>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by oli4 (Posted a comment)
  • -email is unavailable- added by nuxwin (Submitted the item)
  • -email is unavailable- added by nuxwin

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.





    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-11-04 oli4 Open/ClosedOpen Closed
    2013-12-21 oli4 StatusNone Fixed
    2013-11-22 nuxwin Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.9