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

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

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


Revision 1.1 - (show annotations) (download)
Tue May 19 21:26:04 2009 UTC (15 years, 5 months ago) by vip-ire
Branch: MAIN
CVS Tags: smeserver-shared-folders-0_1-4_el4_sme, smeserver-shared-folders-0_1-28_el4_sme, smeserver-shared-folders-0_1-16_el4_sme, smeserver-shared-folders-0_1-43_el4_sme, smeserver-shared-folders-0_1-39_el4_sme, smeserver-shared-folders-0_1-17_el4_sme, smeserver-shared-folders-0_1-25_el4_sme, smeserver-shared-folders-0_1-40_el4_sme, smeserver-shared-folders-0_1-18_el4_sme, 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-51_el4_sme, smeserver-shared-folders-0_1-7_el4_sme, smeserver-shared-folders-0_1-50_el4_sme, smeserver-shared-folders-0_1-59_el4_sme, smeserver-shared-folders-0_1-48_el4_sme, smeserver-shared-folders-0_1-21_el4_sme, smeserver-shared-folders-0_1-56_el4_sme, smeserver-shared-folders-0_1-35_el4_sme, smeserver-shared-folders-0_1-5_el4_sme, smeserver-shared-folders-0_1-37_el4_sme, smeserver-shared-folders-0_1-42_el4_sme, smeserver-shared-folders-0_1-23_el4_sme, smeserver-shared-folders-0_1-60_el4_sme, smeserver-shared-folders-0_1-9_el4_sme, smeserver-shared-folders-0_1-47_el4_sme, smeserver-shared-folders-0_1-77_el4_sme, smeserver-shared-folders-0_1-32_el4_sme, smeserver-shared-folders-0_1-74_el4_sme, smeserver-shared-folders-0_1-26_el4_sme, smeserver-shared-folders-0_1-20_el4_sme, smeserver-shared-folders-0_1-78_el4_sme, smeserver-shared-folders-0_1-22_el4_sme, smeserver-shared-folders-0_1-30_el4_sme, smeserver-shared-folders-0_1-41_el4_sme, smeserver-shared-folders-0_1-13_el4_sme, smeserver-shared-folders-0_1-31_el4_sme, smeserver-shared-folders-0_1-24_el4_sme, smeserver-shared-folders-0_1-34_el4_sme, smeserver-shared-folders-0_1-62_el4_sme, smeserver-shared-folders-0_1-58_el4_sme, smeserver-shared-folders-0_1-11_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-15_el4_sme, smeserver-shared-folders-0_1-49_el4_sme, smeserver-shared-folders-0_1-46_el4_sme, smeserver-shared-folders-0_1-33_el4_sme, smeserver-shared-folders-0_1-44_el4_sme, smeserver-shared-folders-0_1-45_el4_sme, smeserver-shared-folders-0_1-52_el4_sme, smeserver-shared-folders-0_1-29_el4_sme, smeserver-shared-folders-0_1-19_el4_sme, smeserver-shared-folders-0_1-8_el4_sme, smeserver-shared-folders-0_1-72_el4_sme, smeserver-shared-folders-0_1-73_el4_sme, smeserver-shared-folders-0_1-38_el4_sme, smeserver-shared-folders-0_1-12_el4_sme, smeserver-shared-folders-0_1-64_el4_sme, smeserver-shared-folders-0_1-36_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-27_el4_sme, smeserver-shared-folders-0_1-6_el4_sme, smeserver-shared-folders-0_1-53_el4_sme, HEAD
Add http access

1 diff -Nur -x '*.orig' -x '*.rej' smeserver-shared-folders-0.1/root/etc/e-smith/events/actions/share-modify mezzanine_patched_smeserver-shared-folders-0.1/root/etc/e-smith/events/actions/share-modify
2 --- smeserver-shared-folders-0.1/root/etc/e-smith/events/actions/share-modify 2009-04-08 11:55:18.000000000 +0200
3 +++ mezzanine_patched_smeserver-shared-folders-0.1/root/etc/e-smith/events/actions/share-modify 2009-05-17 20:11:46.000000000 +0200
4 @@ -76,6 +76,8 @@
5 #--------------------------------------------------
6
7 my %properties = $share->props;
8 +my @write = split(/[;,]/,($properties {'WriteGroups'} || 'admin'));
9 +my @read = split(/[;,]/,($properties {'ReadGroups'} || 'admin'));
10 $::group = 'admin';
11
12 # Make sensible defaults
13 @@ -96,10 +98,10 @@
14 if (-d)
15 {
16 chmod $::dirperm, $_;
17 - foreach my $group (split(/[;,]/,($properties {'WriteGroups'} || 'admin'))){
18 + foreach my $group (@write){
19 $acl .= 'g:'.$group.':rwx,';
20 }
21 - foreach my $group (split(/[;,]/,($properties {'ReadGroups'} || 'admin'))){
22 + foreach my $group (@read){
23 $acl .= 'g:'.$group.':rx,';
24 }
25 system($setfacl,
26 @@ -110,10 +112,10 @@
27 elsif (-f)
28 {
29 chmod $::fileperm, $_;
30 - foreach my $group (split(/[;,]/,($properties {'WriteGroups'} || 'admin'))){
31 + foreach my $group (@write){
32 $acl .= 'g:'.$group.':rw,';
33 }
34 - foreach my $group (split(/[;,]/,($properties {'ReadGroups'} || 'admin'))){
35 + foreach my $group (@read){
36 $acl .= 'g:'.$group.':r,';
37 }
38 system($setfacl,

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