bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug#488024: cp preserves mode with --no-preserve=mode


From: Jim Meyering
Subject: Re: Bug#488024: cp preserves mode with --no-preserve=mode
Date: Mon, 30 Jun 2008 22:55:09 +0200

Jim Meyering <address@hidden> wrote:
> sergio <address@hidden> wrote:
>> Package: coreutils
>> Version: 6.10-3
>>
>> % touch qwe
>> % chmod 640 qwe
>> % umask u=rwx,g=rx,o=rx
>> % ls -l qwe
>> -rw-r----- 1 sergio sergio 0 Июн 25 22:53 qwe
>> % cp --no-preserve=mode qwe asd
>> % ls -l asd
>> -rw-r----- 1 sergio sergio 0 Июн 25 22:54 asd
>
> Thank you for the report.
> That is a bug even in the latest sources.

Actually, now I'm convinced that is _not_ a bug, but rather the intended
behavior, since "cp --no-preserve=mode ..." is equivalent to "cp ...",
and cp's default behavior is to use the src permission bits (masked via
umask) as the destination permission bits.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]