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

Annotation of /rpms/smeserver-shared-folders/contribs7/smeserver-shared-folders-0.1-fix_encrypted_share_list.patch

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


Revision 1.1 - (hide annotations) (download)
Mon Jul 18 11:46:47 2011 UTC (13 years, 4 months ago) by vip-ire
Branch: MAIN
CVS Tags: smeserver-shared-folders-0_1-71_el4_sme, smeserver-shared-folders-0_1-61_el4_sme, smeserver-shared-folders-0_1-70_el4_sme, smeserver-shared-folders-0_1-66_el4_sme, smeserver-shared-folders-0_1-65_el4_sme, smeserver-shared-folders-0_1-59_el4_sme, smeserver-shared-folders-0_1-56_el4_sme, smeserver-shared-folders-0_1-60_el4_sme, smeserver-shared-folders-0_1-77_el4_sme, smeserver-shared-folders-0_1-74_el4_sme, smeserver-shared-folders-0_1-78_el4_sme, smeserver-shared-folders-0_1-62_el4_sme, smeserver-shared-folders-0_1-58_el4_sme, smeserver-shared-folders-0_1-63_el4_sme, smeserver-shared-folders-0_1-75_el4_sme, smeserver-shared-folders-0_1-76_el4_sme, smeserver-shared-folders-0_1-68_el4_sme, smeserver-shared-folders-0_1-69_el4_sme, smeserver-shared-folders-0_1-57_el4_sme, smeserver-shared-folders-0_1-54_el4_sme, smeserver-shared-folders-0_1-72_el4_sme, smeserver-shared-folders-0_1-73_el4_sme, smeserver-shared-folders-0_1-64_el4_sme, smeserver-shared-folders-0_1-67_el4_sme, smeserver-shared-folders-0_1-79_el4_sme, smeserver-shared-folders-0_1-55_el4_sme, smeserver-shared-folders-0_1-53_el4_sme, HEAD
* Mon Jul 18 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-53.sme
- Fix encrypted share list

1 vip-ire 1.1 diff -Nur smeserver-shared-folders-0.1/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/userpanelEncfs.pm smeserver-shared-folders-0.1_mod/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/userpanelEncfs.pm
2     --- smeserver-shared-folders-0.1/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/userpanelEncfs.pm 2011-07-18 13:30:00.000000000 +0200
3     +++ smeserver-shared-folders-0.1_mod/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/userpanelEncfs.pm 2011-07-18 13:38:10.000000000 +0200
4     @@ -24,6 +24,7 @@
5     our $accountdb = esmith::AccountsDB->open();
6     our $user = $ENV{'REMOTE_USER'};
7     $user = $1 if ($user =~ /^([a-z][\-a-z0-9]*)$/);
8     +our @usergroups = $accountdb->user_group_list($user);
9    
10     *wherenext = \&CGI::FormMagick::wherenext;
11    
12     @@ -44,9 +45,8 @@
13     my @encfs = ();
14    
15     foreach (@shares){
16     - my @sharegroups = $_->prop('WriteGroups'), $_->prop('ReadGroups');
17     + my @sharegroups = split(/[,;]/, ($_->prop('WriteGroups') || '') .','. ($_->prop('ReadGroups') || ''));
18     @sharegroups = keys %{{ map { $_ => 1 } @sharegroups }};
19     - my @usergroups = $accountdb->user_group_list($user);
20    
21     my %count = ();
22     my @intersection = ();
23     @@ -59,7 +59,7 @@
24     # and the user has at least read access
25     if ((($_->prop('Encryption') || 'disabled') eq 'enabled') &&
26     ((scalar @intersection > 0 ) || $user eq 'admin')){
27     - push @encfs, $_ if (($_->prop('Encryption') || 'disabled') eq 'enabled');
28     + push @encfs, $_;
29     }
30     }
31     unless ( scalar @encfs )

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