All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] package/coreutils mkfifo -m exit status
@ 2021-12-26  9:51 Max Filippov
  2021-12-26 11:23 ` Thomas Petazzoni
  0 siblings, 1 reply; 4+ messages in thread
From: Max Filippov @ 2021-12-26  9:51 UTC (permalink / raw)
  To: buildroot

Hello,

I've noticed that when I run
mkfifo -m 600 fifo-name
from package/coreutils on a linux system it always indicates an error
in the exit code.

Debugging showed that lchmod function call at
https://github.com/coreutils/coreutils/blob/v9.0/src/mkfifo.c#L178
returns error because when the package is configured with
gl_cv_func_fstatat_zero_flag=no the following fstatat code in lchmod
https://github.com/coreutils/gnulib/blob/9aca7b67333fd0a90bf56104325ce96199644451/lib/lchmod.c#L65
always returns error with EINVAL in errno.

Removing gl_cv_func_fstatat_zero_flag=no from the package/coreutils
config environment fixes that issue for me, but I couldn't find any
explanation as to why it was added. I can send a patch if this
is an acceptable fix, please let me know.

-- 
Thanks.
-- Max
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2021-12-27  8:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-26  9:51 [Buildroot] package/coreutils mkfifo -m exit status Max Filippov
2021-12-26 11:23 ` Thomas Petazzoni
2021-12-27  7:24   ` Max Filippov
2021-12-27  8:54     ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.