[Mono-list] Wrong file permissions

Giuseppe Greco giuseppe.greco@agamura.com
Sat, 09 Aug 2003 12:03:30 +0200


--=-9CXX+u+VZ6La9Qf0SMA5
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi all,

Write a small program like this:


  using System;
  using System.IO;
                                                   
  public class FileCreator
  {
    public static void Main(string[] args)
    {
      File.Create(args[0]);
    }
  }

... compile it:

  mcs -t:exec *.cs

... and execute it:

  mono ./FileCreater.exe myfile1.txt

Then, execute the following command:

  touch myfile2.txt

... and as the last step compare the result:

  ll *.txt

-rw-------    1 genius   genius          0 Aug  9 11:57 myfile1.txt
-rw-rw-r--    1 genius   genius          0 Aug  9 11:57 myfile2.txt

As you can see, the file permissions of myfile1.txt (the one generated
with the System.IO.File class) are wrong...

I've already entered this bug in buzilla some time ago and has already
been marked as solved... Should I re-enter it?

Attached to this e-mail you'll find the source file to reproduce the
problem.

Gius_.

-- 
----------------------------------------
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
----------------------------------------

--=-9CXX+u+VZ6La9Qf0SMA5
Content-Disposition: attachment; filename=mkfile.tar.gz
Content-Type: application/x-compressed-tar; name=mkfile.tar.gz
Content-Transfer-Encoding: base64

H4sIAB3END8AA+1XPWwcRRR+e04se0lOBqLIQSKM1ySyXez95M5G8vmHS5w4KMaRLqFIiMjd3vi8
eH9O+2PZRCGpQFDTgKCFKlSRCDQI0VCQhooyBUUKGqQUaYJ5b3f2bu1EmER2oqD57Nl5782bN29m
3puZs1eWTIvnYDeRR0xMlON6vLSpFgBUKJQLpWK+QHrjhXwRWHlXvZIg2PH+N/lSPbQCvRGaVnOn
x6ANHt+y7+n9LxfLyf4XxvNIF/IlDBe2035IPIzKzJptsVXu+abrTGkFPa/NTKtqpe2573MjUBlz
6jaf0hZWTmKcaMiLUJnSoljRUJmxSlD3Wpy0E/24MRI0uW94ZjuIBqiS3GfBMmdG6HncC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