/[smecontribs]/rpms/smeserver-shared-folders/contribs10/smeserver-shared-folders-0.3-bz12119-admin-write.patch
ViewVC logotype

Contents of /rpms/smeserver-shared-folders/contribs10/smeserver-shared-folders-0.3-bz12119-admin-write.patch

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


Revision 1.2 - (show annotations) (download)
Tue Feb 27 08:21:30 2024 UTC (8 months ago) by terryfage
Branch: MAIN
CVS Tags: smeserver-shared-folders-0_3-22_el7_sme, smeserver-shared-folders-0_3-21_el7_sme, smeserver-shared-folders-0_3-23_el7_sme, HEAD
Changes since 1.1: +9 -1 lines
* Tue Feb 27 2024 Zsolt Vasarhelyi <vasarhelyizsolt@hotmail.com> 0.3-21.sme
- Corrected wrong patch Update  - No write access for admin in shared folder [SME: 12119]
  fixed previous build error using old patch (Terry Fage)

1 diff -urN smeserver-shared-folders-0.3.old/root/etc/e-smith/events/actions/share-modify smeserver-shared-folders-0.3/root/etc/e-smith/events/actions/share-modify
2 --- smeserver-shared-folders-0.3.old/root/etc/e-smith/events/actions/share-modify 2024-02-21 13:01:59.405331433 +0200
3 +++ smeserver-shared-folders-0.3/root/etc/e-smith/events/actions/share-modify 2024-02-26 19:30:37.982750836 +0200
4 @@ -90,8 +90,8 @@
5 #--------------------------------------------------
6
7 my %properties = $share->props;
8 -my @writegroups = split(/[;,]/,($properties {'WriteGroups'} || 'admin'));
9 -my @readgroups = split(/[;,]/,($properties {'ReadGroups'} || 'admin'));
10 +my @writegroups = split(/[;,]/,($properties {'WriteGroups'} || ''));
11 +my @readgroups = split(/[;,]/,($properties {'ReadGroups'} || ''));
12 my @writeusers = split(/[;,]/,($properties {'WriteUsers'} || ''));
13 my @readusers = split(/[;,]/,($properties {'ReadUsers'} || ''));
14 my $rsync = $properties{'rsyncAccess'} || 'none';
15 @@ -129,6 +129,7 @@
16 }
17 $acl .= 'u:rsync:rX,' if ($rsync =~ /^local|global$/);
18 $acl .= 'u:www:rwX,' unless (($http eq 'none') && ($pydio ne 'enabled'));
19 + $acl .= 'g:admin:rwX';
20
21 # Set the effective ACLs
22 system($setfacl,
23 @@ -164,6 +165,7 @@
24 }
25 $acl .= 'u:rsync:rX,' if ($rsync =~ /^local|global$/);
26 $acl .= 'u:www:rX,' unless (($http eq 'none') && ($pydio ne 'enabled'));
27 + $acl .= 'g:admin:rX';
28
29 system($setfacl,
30 '-m',

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