Re: [PATCH] fstatat: support NULL if AT_EMPTY_PATH

Bruno Haible via Gnulib discussion list <[email protected]>
Newsgroups gmane.comp.lib.gnulib.bugs
Message-ID <9767663.CDJkKcVGEf@cagnes>
Hi Paul,

Yesterday's CI of GNU m4 (newest m4 sources, newest gnulib sources, on
Alpine Linux) shows a test failure:


FAIL: test-fstatat
==================

Segmentation fault (core dumped)
FAIL test-fstatat (exit status: 139)


I reproduce it in Alpine Linux 3.24.1 (but not in 3.22 nor 3.20).
The backtrace is:
  test-fstatat.c:111
    -> musl/src/stat/fstatat.c:147
       -> musl/src/stat/fstatat.c:81

That line reads:
        if (flag==AT_EMPTY_PATH && fd>=0 && !*path) {

Bruno
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.