https://bugs.kde.org/show_bug.cgi?id=399270

Ahmad Samir <a.samir...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |a.samir...@gmail.com
             Status|CONFIRMED                   |NEEDSINFO
         Resolution|---                         |WAITINGFORINFO

--- Comment #1 from Ahmad Samir <a.samir...@gmail.com> ---
It's faster to just show the shell output:
[~/test-setgid]>$ mkdir ~/test-setgid
[~/test-setgid]>$ cd ~/test-setgid/
[~/test-setgid]>$ sudo chown ahmad:users ./
[~/test-setgid]>$ sudo chmod g+s ./
[~/test-setgid]>$ ls -ld
drwxr-sr-x 2 ahmad users 4096 Sep 24 00:14 .

Creating a new file and dir from the cli:
[~/test-setgid]>$ touch file
[~/test-setgid]>$ mkdir dir
[~/test-setgid]>$ ls -l
total 4
drwxr-sr-x 2 ahmad users 4096 Sep 24 00:15 dir
-rw-r--r-- 1 ahmad users    0 Sep 24 00:15 file

[~/test-setgid]>$ ls -l ~/copied-file
-rw-r--r-- 1 ahmad ahmad 10 Sep 24 00:16 /home/ahmad/copied-file
[~/test-setgid]>$ cp ~/copied-file .
[~/test-setgid]>$ ls -l
total 8
drwxr-sr-x 2 ahmad users 4096 Sep 24 00:15 dir
-rw-r--r-- 1 ahmad users   10 Sep 24 00:16 copied-file
-rw-r--r-- 1 ahmad users    0 Sep 24 00:15 file

[~/test-setgid]>$ ls -ld ~/copied-dir
drwxr-xr-x 2 ahmad ahmad 4096 Sep 24 00:16 /home/ahmad/copied-dir
[~/test-setgid]>$ cp -r ~/copied-dir .
[~/test-setgid]>$ ls -l
total 12
drwxr-sr-x 2 ahmad users 4096 Sep 24 00:16 copied-dir
drwxr-sr-x 2 ahmad users 4096 Sep 24 00:15 dir
-rw-r--r-- 1 ahmad users   10 Sep 24 00:16 copied-file
-rw-r--r-- 1 ahmad users    0 Sep 24 00:15 file

Now with dolphin:
[~/test-setgid]>$ ls -ld ~/copied-file-with-dolphin ~/copied-dir-from-dolphin/
drwxr-xr-x 2 ahmad ahmad 4096 Sep 24 00:27 /home/ahmad/copied-dir-from-dolphin/
-rw-r--r-- 1 ahmad ahmad    6 Sep 24 00:26 /home/ahmad/copied-file-with-dolphin

Copied the the two above items using dolphin, and the result:
[~/test-setgid]>$ ls -l copied-file-with-dolphin
-rw-r--r-- 1 ahmad ahmad 6 Sep 24 00:26 copied-file-with-dolphin
[~/test-setgid]>$ ls -ld copied-dir-from-dolphin/
drwxr-sr-x 2 ahmad users 4096 Sep 24 00:27 copied-dir-from-dolphin/

So it looks like it's the same behaviour as using cp from the cli.

Can you still reproduce this issue?

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to