/[smecontribs]/rpms/smeserver-shared-folders/contribs8/smeserver-shared-folders-0.1-dedup_writers.patch
ViewVC logotype

Annotation of /rpms/smeserver-shared-folders/contribs8/smeserver-shared-folders-0.1-dedup_writers.patch

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


Revision 1.1 - (hide annotations) (download)
Sun Mar 3 22:04:38 2013 UTC (11 years, 8 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-shared-folders-0_1-80_el5_sme, smeserver-shared-folders-0_1-83_el5_sme, smeserver-shared-folders-0_1-84_el5_sme, smeserver-shared-folders-0_1-82_el5_sme, smeserver-shared-folders-0_1-87_el5_sme, smeserver-shared-folders-0_1-86_el5_sme, smeserver-shared-folders-0_1-81_el5_sme, smeserver-shared-folders-0_1-85_el5_sme, smeserver-shared-folders-0_1-79_el5_sme, HEAD
Initial import

1 unnilennium 1.1 diff -Nur smeserver-shared-folders-0.1/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/90e-smithAccess50shares smeserver-shared-folders-0.1_mod/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/90e-smithAccess50shares
2     --- smeserver-shared-folders-0.1/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/90e-smithAccess50shares 2011-03-29 16:28:07.000000000 +0200
3     +++ smeserver-shared-folders-0.1_mod/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/90e-smithAccess50shares 2011-03-29 16:31:43.000000000 +0200
4     @@ -17,7 +17,8 @@
5     my $webdav = (($properties{'WebDav'} || 'disabled') =~ m/^(enabled|on|yes)$/i) ? 1 : 0;
6    
7     # Find which users has at least read access
8     - my @users = ('admin');
9     + my @writers = ('admin');
10     + my @readers = ();
11     if ($properties{'WriteGroups'}) {
12     my @groups = split (/[;,]/, $properties{'WriteGroups'});
13    
14     @@ -42,9 +43,11 @@
15     }
16    
17     my %seen = ();
18     - my @readers = sort (grep { ! $seen{ $_ }++ } (@readers,@writers));
19     + @readers = sort (grep { ! $seen{ $_ }++ } (@readers,@writers));
20     + %seen = ();
21     + @writers = sort (grep { ! $seen{ $_ }++ } (@writers));
22    
23     - my $readers = join(" ", @readers) || '';
24     + my $readers = join(" ", @readers) || '';
25     my $writers = join(" ", @writers) || '';
26    
27     if ($properties{'httpAccess'})

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