bugJailkit - Bugs: bug #22272, jk_jailuser crash on empty jail...

 
 

bug #22272: jk_jailuser crash on empty jail directory in interactive mode

Submitter:  Grucidor Brain <gbrain>
Submitted:  Sat 09 Feb 2008 02:53:51 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
   

Sat 09 Feb 2008 10:24:07 PM UTC, comment #1: 

this was recently fixed in cvs already

will be part of the next release

Olivier Sessink <oli4>
Group administrator
Sat 09 Feb 2008 02:53:51 PM UTC, original submission:  

The following command:

jk_jailuser gbrain

results in a prompt like this:

enter jail directory:

When [Enter] is pressed, the program crashes like this:

Traceback (most recent call last):
  File "/usr/sbin/jk_jailuser", line 334, in <module>
    main()
  File "/usr/sbin/jk_jailuser", line 318, in main
    jail = getjail(jail,config)
  File "/usr/sbin/jk_jailuser", line 259, in getjail
    if (type(jail) == str and jail[0] != '/'):
IndexError: string index out of range

Solution: Add check for empty jail directory.

This happened to me in the latest stable release jailkit-2.5

Grucidor Brain <gbrain>

 

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

Attach Files:
   
   
Comment:
   

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 gbrain (Submitted the item)
  •  

    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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-02-09 oli4 StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code