Re: [Cooker] cp ignores umask !?

2001-08-29 Thread Grégoire Colbert

Guillaume Rousse wrote:
> [guillaume@silbermann guillaume]$ umask
> 077
> [guillaume@silbermann guillaume]$ touch foo
> [guillaume@silbermann guillaume]$ ll foo
> -rw---1 guillaum guillaum0 aoû 29 12:38 foo
> [guillaume@silbermann guillaume]$ umask 022
> [guillaume@silbermann guillaume]$ cp foo foo.new
> [guillaume@silbermann guillaume]$ ll foo.new
> -rw---1 guillaum guillaum0 aoû 29 12:38 foo.new
> 
> Is this normal behavior ?

I think "cp" preserves permissions. Like when you copy files from a Fat 
partition, they get the x perm and you have to chmod them by hand.

Grégoire





Re: [Cooker] cp ignores umask !?

2001-08-29 Thread Pixel

Guillaume Rousse <[EMAIL PROTECTED]> writes:

[...] (cp preserves the rights)

> Is this normal behavior ?

cp changed quite a lot, but i tested on fileutils-4.0 and it behaved the same
way.