Re: [Patch, Fortran] PR36755 Use a library call instead of calling chmod()

2012-01-12 Thread Janne Blomqvist
On Thu, Jan 12, 2012 at 21:24, Tobias Burnus wrote: > This patch changes the handling of the CHMOD intrinsic. > > Currently, libgfortran calls /bin/chmod via fork/exec. The problem is on one > hand that the re-implemented system() call is not 100% correct. > > On the other hand, it will not work o

[Patch, Fortran] PR36755 Use a library call instead of calling chmod()

2012-01-12 Thread Tobias Burnus
This patch changes the handling of the CHMOD intrinsic. Currently, libgfortran calls /bin/chmod via fork/exec. The problem is on one hand that the re-implemented system() call is not 100% correct. On the other hand, it will not work on systems where /bin/chmod is not available. For instance,