<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>191474</bug_id>
          
          <creation_ts>2009-05-03 15:09:27 +0000</creation_ts>
          <short_desc>ACL not copied for files when copying the parent folder</short_desc>
          <delta_ts>2013-06-16 21:33:48 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>kio</product>
          <component>general</component>
          <version>4.2.0</version>
          <rep_platform>unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="jonathan aquilina">eagles051387</reporter>
          <assigned_to name="David Faure">faure</assigned_to>
          <cc>adawit</cc>
    
    <cc>heretic_q2</cc>
          
          <cf_commitlink>http://commits.kde.org/kdelibs/73ea8cee7661579d3c414f510f6a74fc241c3ecf</cf_commitlink>
          <cf_versionfixedin>4.9</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>20</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>751644</commentid>
    <comment_count>0</comment_count>
    <who name="jonathan aquilina">eagles051387</who>
    <bug_when>2009-05-03 15:09:27 +0000</bug_when>
    <thetext>Version:            (using KDE 4.2.2)
OS:                Linux
Installed from:    I Don&apos;t Know

Binary package hint: konqueror

There&apos;s a folder with files having ACL permissions. While copying into an other folder with acl permissions, only folder permissions are inherited. I&apos;ve tried Dolphin and Konqueror, neither of them work, but mc works fine.

Steps:

1. There is a folder with acl permissions in this folder is a folder &quot;folder1&quot; which are files with name &quot;file1&quot;, &quot;file2&quot;, &quot;file3&quot; permissions to file similar folder:
getfacl - numeric ./folder1
user:: rwx
group:: rwx
group: 10004: rwx
mask:: rwx
other ::---
default: user:: rwx
default: group:: rwx
default: group: 10004: rwx
default: mask:: rwx
default: other ::---

2. In Konqueror, Dolphin copy folder

3. Opens second &quot;folder2&quot; folder in which the following ACL:
getfacl - numeric ./folder2
user:: rwx
group:: rwx
group: 10005: rwx
mask:: rwx
other ::---
default: user:: rwx
default: group:: rwx
default: group: 10005: rwx
default: mask:: rwx
default: other ::---

4. Inserts in &quot;folder2&quot; folder with name &quot;folder1&quot;, after inserting a folder in mc (nautilus), ACL permissions inherited from folders with name &quot;folder2&quot; unlike Konqueror, Dolphin.

5. After ACL in &quot;folder1&quot; viewer, we see that the permissions of the folder have changed, as it should be:
getfacl - numeric ./folder2/folder1
user:: rwx
group:: rwx
group: 10005: rwx
mask:: rwx
other ::---
default: user:: rwx
default: group:: rwx
default: group: 10005: rwx
default: mask:: rwx
default: other ::---

But if you look at the files in this folder, then their permissions remained unchanged
getfacul - numeric ./folder2/folder1/file1
user:: rwx
group:: rwx
group: 10004: rwx
mask:: rwx
other ::---
default: user:: rwx
default: group:: rwx
default: group: 10004: rwx
default: mask:: rwx
default: other ::---

It was expected that after copying folders with name &quot;folder1&quot;, it has the permissions to default inherit from the folder &quot;folder2&quot;. While copying in mc or nautilus permissions to a folder copied correctly inherited from the folder which one level above.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>751645</commentid>
    <comment_count>1</comment_count>
    <who name="jonathan aquilina">eagles051387</who>
    <bug_when>2009-05-03 15:10:25 +0000</bug_when>
    <thetext>bug can be found at https://bugs.edge.launchpad.net/ubuntu/+source/kdebase/+bug/254877</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>920253</commentid>
    <comment_count>2</comment_count>
    <who name="Heretic">heretic_q2</who>
    <bug_when>2010-02-19 11:40:50 +0000</bug_when>
    <thetext>I found fix, in kdelibs package for me. In Kubuntu 8.04 LTS. KDE 3.5.10.

./apt-build/build/kdelibs-3.5.10/kio/kio/job.cpp

2195c2195
&lt;         m_defaultPermissions = false;
---
&gt;         m_defaultPermissions = true;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1289332</commentid>
    <comment_count>3</comment_count>
    <who name="David Faure">faure</who>
    <bug_when>2012-08-20 15:58:34 +0000</bug_when>
    <thetext>Git commit 73ea8cee7661579d3c414f510f6a74fc241c3ecf by David Faure.
Committed on 20/08/2012 at 17:53.
Pushed by dfaure into branch &apos;KDE/4.9&apos;.

Fix copying of files with extended ACLs.

The switch to #cmakedefine01 in KDE Frameworks has detected a missing
 #include &lt;config-acl.h&gt; in file_unix.cpp ever since it was splitted
out. In case we still had a doubt about how much more superior the
cmakedefine01 (#if instead of #ifdef) solution is...
  (not tested, but might help...)

M  +2    -9    kioslave/file/file.cpp
M  +10   -0    kioslave/file/file.h

http://commits.kde.org/kdelibs/73ea8cee7661579d3c414f510f6a74fc241c3ecf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1377193</commentid>
    <comment_count>4</comment_count>
    <who name="Dawit Alemayehu">adawit</who>
    <bug_when>2013-06-16 21:33:48 +0000</bug_when>
    <thetext>Seems to be fixed for 4.9. Feel free to reopen if that is not the case.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>