This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/36755] Avoid fork/exec in chmod intrinsic
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 12 Jan 2012 17:31:37 +0000
- Subject: [Bug libfortran/36755] Avoid fork/exec in chmod intrinsic
- Auto-submitted: auto-generated
- References: <bug-36755-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36755
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #26305|0 |1
is obsolete| |
--- Comment #8 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-01-12 17:31:37 UTC ---
Created attachment 26307
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26307
Improved version: POSIXly correct chmod as separate program
Attached: A "chmod" program, which takes a string and a file name and should
act as a POSIX chmod program would do. Thus, it honors the "umask", allows for
fancy combinations such as "g+w-r,a+x,-w,o=u,u+s,+t".
TODO:
- Convert this into libgfortran/intrinsic/chmod.c
- Write a fancy documentation for
http://gcc.gnu.org/onlinedocs/gfortran/CHMOD.html which actually describes
which modes are supported - and stats that the mode argument is in line with
the "chmod utility" of POSIX (IEEE Std 1003.1-2001).