Skip to content
Permalink
Browse files

Add rootfolder to reserved path

  • Loading branch information
alexey1234 committed Jul 11, 2015
1 parent 3cee85a commit 4b5758e9fe0b59d4f3840466fccce9ae59e0cec7
Showing with 1 addition and 4 deletions.
  1. +1 −4 conf/ext/thebrig/extensions_thebrig_edit.php
@@ -184,6 +184,7 @@
$thebrig_names = array ("basejail" , "work" , "conf" , "template" );
$thebrig_dirs = $thebrig_names + array ( "conf/ext" , "conf/bin");
$thebrig_dirs = preg_replace("/(.+)/", $config['thebrig']['rootfolder'] . "$1/", $thebrig_dirs, 1);
$thebrig_dirs[] = $config['thebrig']['rootfolder'];

if ( array_search ($pconfig['jailname'], $thebrig_names ) !== FALSE)
$input_errors[] = "The specified jailname is reserved. Please choose another.";
@@ -267,10 +268,6 @@
$input_errors[] = "Could not create directory for jail to live in!";
}

// Validate if jail number is unique in order to reorder the jails (if necessary)
// Alexey - why do we care about the jail number or the uuid?
// Why not use the name?
// a_jail is the list of all jails, sorted by their jail number

if ( empty( $input_errors )) {

0 comments on commit 4b5758e

Please sign in to comment.