def bsd_jail_path(jid):
 if (jid != 0):
  jls_output = call((GET_BSD_JAIL_PATH % jid), [])
  if ((len(jls_output) == 2) and (len(jls_output[1].split()) == 4)):
   return jls_output[1].split()[3]
 return None

def bsd_jail_path ( jid ) : if ( jid != 0 ) : jls_output = call ( ( GET_BSD_JAIL_PATH % jid ) , [ ] ) if ( ( len ( jls_output ) == 2 ) and ( len ( jls_output [ 1 ] . split ( ) ) == 4 ) ) : return jls_output [ 1 ] . split ( ) [ 3 ] return None
provides the path of the given freebsd jail .