[Mono-list] File permissions ...
Giuseppe Greco
giuseppe.greco@agamura.com
09 May 2003 21:29:09 +0200
The problem is on Linux, and I discovered it by running NAnt.
I have a build file containing a <copy> task, and after running it
the copied files all have read permission only (600 instead of 664).
I reported the problem to Ian, and he answered me that the problem
arises on Linux only due a Mono bug.
My umask is set to 0002.
Gius_.
On Fri, 2003-05-09 at 21:09, Gonzalo Paniagua Javier wrote:
> El vie, 09 de 05 de 2003 a las 20:56, Giuseppe Greco escribió:
> > 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?
>
> Probably your umask is set to 077.
>
> -Gonzalo
>
>
> _______________________________________________
> Mono-list maillist - Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
--
----------------------------------------
Giuseppe Greco
::agamura::
phone: +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email: giuseppe.greco@agamura.com
web: www.agamura.com
----------------------------------------