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

 
 

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

Submitted by:  Grucidor Brain <gbrain>
Submitted on:  Sat 09 Feb 2008 02:53:51 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 09 Feb 2008 10:24:07 PM UTColi4StatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1