public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/65200] New: Handle EPERM when opening files
@ 2015-02-25 10:28 jb at gcc dot gnu.org
  2015-02-25 21:17 ` [Bug libfortran/65200] " jvdelisle at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: jb at gcc dot gnu.org @ 2015-02-25 10:28 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65200

            Bug ID: 65200
           Summary: Handle EPERM when opening files
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jb at gcc dot gnu.org

In some cases at least Linux can return an EPERM rather than EACCES error in
case opening a file fails, see

https://stackoverflow.com/questions/28696539/fortran-open-call-differs-on-nfsv3-vs-nfsv4

Based on some googling, the distinction between EACCES and EPERM are something
like

- EACCESS: Insufficient privilege. E.g. do the same as root and this should
work.
- EPERM: Operation not permitted. That is, no matter the privilege level, this
isn't allowed. E.g. truncating a file opened with O_APPEND and such.

but as can be seen in the URL above, both seem to be used depending on various
details.

This should be a simple fix in io/unix.c.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-03-11 21:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-25 10:28 [Bug libfortran/65200] New: Handle EPERM when opening files jb at gcc dot gnu.org
2015-02-25 21:17 ` [Bug libfortran/65200] " jvdelisle at gcc dot gnu.org
2015-02-25 21:31 ` jvdelisle at gcc dot gnu.org
2015-03-06 12:20 ` jb at gcc dot gnu.org
2015-03-06 13:00 ` dominiq at lps dot ens.fr
2015-03-06 13:17 ` burnus at gcc dot gnu.org
2015-03-11 21:34 ` jb at gcc dot gnu.org
2015-03-11 21:40 ` jb at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).