#3557 zones::validate_zone_terminal() function does not exist

1.490
closed-fixed
Jamie Cameron
5
2009-12-07
2009-12-07
Anonymous
No

System: Solaris 10 10/08 s10s_u6wos_07b SPARC

When creating a new zone, if any terminal type other than the default is specified, Webmin complains that the subroutine zones::validate_zone_terminal() does not exist.

The <webmin_home>/zones/forms-lib.pl file has validate functions for the other fields, but not for terminal. I added the following snippet to my local forms-lib.pl file which seemed to fix the problem:

sub validate_zone_terminal {
my $term = $text{'create_terminal'};
$term =~ s/^.//; $term = $&.$term;
return ( -e "/usr/share/lib/terminfo/$&/$term" ) ? $term : undef;
}

Discussion

  • Jamie Cameron
    Jamie Cameron
    2009-12-07

    Thanks .. I will fix this in the next release.

     
  • Jamie Cameron
    Jamie Cameron
    2009-12-07

    • status: open --> closed-fixed