[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] tests: copy.c destination permissions lost when backup specifie
From: |
Sami Kerola |
Subject: |
[PATCH] tests: copy.c destination permissions lost when backup specified |
Date: |
Mon, 30 Mar 2009 13:25:08 +0200 |
Hi,
Either this is bug or an unintuitive feature.
address@hidden ~/foo touch src dest
address@hidden ~/foo chmod g-rwx src
address@hidden ~/foo chmod g+rwx dest
address@hidden ~/foo ls -l
total 0
-rw-rwxr-- 1 sake sake 0 2009-03-30 13:16 dest
-rw----r-- 1 sake sake 0 2009-03-30 13:16 src
address@hidden ~/foo cp --force --backup=t src dest
address@hidden ~/foo ls -l
total 0
-rw----r-- 1 sake sake 0 2009-03-30 13:16 dest
-rw-rwxr-- 1 sake sake 0 2009-03-30 13:16 dest.~1~
-rw----r-- 1 sake sake 0 2009-03-30 13:16 src
In case this is bug the patch is good. In case of feature it should be
modified to make sure that permissions are different.
--
Sami Kerola
http://www.iki.fi/kerolasa/
0001-check-that-dest-and-backup-permissions-are-same.txt
Description: Text document
- [PATCH] tests: copy.c destination permissions lost when backup specified,
Sami Kerola <=