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

Scott E. <sesail999 at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sesail999 at gmail dot com

--- Comment #2 from Scott E. <sesail999 at gmail dot com> ---
Just to add a few more details, I discovered this via "cronolog", which does
this pattern of stat() with a null pathname. Not that it makes the code
correct, and it could easily be guarded against, however this code has been
working fine since 2001 [1].

There's a few more details in the downstream bug report [2].

[1]
https://github.com/fordmason/cronolog/blame/83f9e99d6bd5cb8f5cc06723f4d79d1265582340/src/cronoutils.c#L250
[2] https://bugs.launchpad.net/ubuntu/+source/gcc-5/+bug/1770676

Reply via email to