/[smecontribs]/rpms/smeserver-shared-folders/contribs7/smeserver-shared-folders-0.1-name_ending_with_dollar.patch
ViewVC logotype

Contents of /rpms/smeserver-shared-folders/contribs7/smeserver-shared-folders-0.1-name_ending_with_dollar.patch

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


Revision 1.1 - (show annotations) (download)
Thu Oct 18 11:33:12 2012 UTC (12 years, 1 month ago) by vip-ire
Branch: MAIN
CVS Tags: smeserver-shared-folders-0_1-79_el4_sme, smeserver-shared-folders-0_1-78_el4_sme, HEAD
* Thu Oct 18 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1-78.sme
- Allow share names ending with dollar
  (windows can, and it might be needed for migrations)

1 diff -Nur smeserver-shared-folders-0.1/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/shares.pm smeserver-shared-folders-0.1_mod/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/shares.pm
2 --- smeserver-shared-folders-0.1/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/shares.pm 2012-10-18 13:28:53.125143707 +0200
3 +++ smeserver-shared-folders-0.1_mod/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/shares.pm 2012-10-18 13:30:01.989901252 +0200
4 @@ -778,7 +778,7 @@
5 sub validate_name {
6 my ($self, $acctName) = @_;
7
8 - unless ($acctName =~ /^([a-z0-9][\_\.\-a-z0-9]*)$/){
9 + unless ($acctName =~ /^([a-z0-9][\_\.\-a-z0-9]*)\$?$/){
10 return $self->localise('ACCT_NAME_HAS_INVALID_CHARS',
11 {acctName => $acctName});
12 }

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