/[smeserver]/rpms/e-smith-hosts/sme9/e-smith-hosts-2.4.0-allow_empty_comment.patch
ViewVC logotype

Contents of /rpms/e-smith-hosts/sme9/e-smith-hosts-2.4.0-allow_empty_comment.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Wed Jan 6 15:45:23 2016 UTC (8 years, 4 months ago) by vip-ire
Branch: MAIN
CVS Tags: e-smith-hosts-2_4_0-12_el6_sme, HEAD
* Wed Jan 6 2016 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-12.sme
- Allow empty comment when creating/modifying a hostname [SME: 9177]

1 diff -Nur e-smith-hosts-2.4.0/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/hostentries.pm e-smith-hosts-2.4.0_bz9177/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/hostentries.pm
2 --- e-smith-hosts-2.4.0/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/hostentries.pm 2016-01-06 16:40:35.746506087 +0100
3 +++ e-smith-hosts-2.4.0_bz9177/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/hostentries.pm 2016-01-06 16:41:10.088504130 +0100
4 @@ -428,7 +428,7 @@
5 return $self->error('HOSTNAME_VALIDATOR_ERROR');
6 }
7
8 - unless ( $comment =~ /^([a-zA-Z0-9][\_\.\-,A-Za-z0-9\s]*)$/ )
9 + unless ( $comment =~ /^([a-zA-Z0-9][\_\.\-,A-Za-z0-9\s]*)$/ || $comment eq '' )
10 {
11 return $self->error('HOSTNAME_COMMENT_ERROR');
12 }

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed