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

Annotation 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.1 - (hide annotations) (download)
Wed Feb 21 19:40:09 2024 UTC (8 months, 1 week ago) by terryfage
Branch: MAIN
CVS Tags: smeserver-shared-folders-0_3-20_el7_sme, smeserver-shared-folders-0_3-19_el7_sme
* Thu Feb 22 2024 Zsolt Vasarhelyi <vasarhelyizsolt@hotmail.com> 0.3-19.sme
- No write access for admin in shared folder [SME: 12119]
  with this patch admin has write access both before and after saving permissions

1 terryfage 1.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-21 12:46:45.000000000 +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,

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