[Mono-list] File permissions ...

WC -Sx- Jones lists@insecurity.org
Fri, 9 May 2003 15:09:18 -0400


[Oops, posted from wrong address.]

Since you didn't say Windows or Unix - then I would hazard:


No, it is a system-wide UMASK setting.

022 I believe...

HTH/Sx  :)


On Friday, May 9, 2003, at 02:56  PM, Giuseppe Greco wrote:

> Hi all,
>
> Try doing this from csharp code:
>
> File.Copy( "mySource.txt", "myDest.txt", true );
>
> ... and then look at the file permissions:
>
> -rw-rw-r-- mySource.txt
> -rw------- myDest.txt
>
> The File.Copy() method doesn't keep the original
> file permissions; does anybody know if this is
> a known bug in Mono?