public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/108276] New: libiberty unlink_if_ordinary does not handle Windows nul device correctly
@ 2023-01-03 17:03 himalr at proton dot me
  2023-01-03 17:24 ` [Bug other/108276] " pinskia at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: himalr at proton dot me @ 2023-01-03 17:03 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 108276
           Summary: libiberty unlink_if_ordinary does not handle Windows
                    nul device correctly
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: himalr at proton dot me
  Target Milestone: ---

Created attachment 54180
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54180&action=edit
Handle Windows nul device correctly in unlink_if_ordinary function

I reported this as a part of another bug to [Sourceware
Bugzilla](https://sourceware.org/bugzilla/show_bug.cgi?id=29947) and was asked
to report this here.

In Windows, 'stat' function (and in turn, S_ISREG) returns true for null device
as a regular file.

Please note that I'm not a C programmer so let me know if there are any issues
with the patch.

Thanks.

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

end of thread, other threads:[~2023-01-18  0:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-03 17:03 [Bug other/108276] New: libiberty unlink_if_ordinary does not handle Windows nul device correctly himalr at proton dot me
2023-01-03 17:24 ` [Bug other/108276] " pinskia at gcc dot gnu.org
2023-01-16 16:23 ` i.nixman at autistici dot org
2023-01-16 17:02 ` i.nixman at autistici dot org
2023-01-16 18:28 ` i.nixman at autistici dot org
2023-01-17  1:18 ` himalr at proton dot me
2023-01-17  7:06 ` i.nixman at autistici dot org
2023-01-18  0:53 ` himalr at proton dot me

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