* bug in open(2) example
@ 2021-02-26 17:10 Walter Harms
2021-02-26 20:03 ` Alejandro Colomar (man-pages)
0 siblings, 1 reply; 2+ messages in thread
From: Walter Harms @ 2021-02-26 17:10 UTC (permalink / raw)
To: linux-man@vger.kernel.org
Hi List,
the example for O_TMPFILE is broken:
linkat(fd, NULL, AT_FDCWD, "/path/for/file", AT_EMPTY_PATH);
^^^^^^
as the linkat(2) page says "Empty String" not NULL.
see:https://man7.org/linux/man-pages/man2/open.2.html
re,
wh
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: bug in open(2) example
2021-02-26 17:10 bug in open(2) example Walter Harms
@ 2021-02-26 20:03 ` Alejandro Colomar (man-pages)
0 siblings, 0 replies; 2+ messages in thread
From: Alejandro Colomar (man-pages) @ 2021-02-26 20:03 UTC (permalink / raw)
To: Walter Harms, linux-man@vger.kernel.org; +Cc: Michael Kerrisk (man-pages)
Hi Walter,
On 2/26/21 6:10 PM, Walter Harms wrote:
> the example for O_TMPFILE is broken:
> linkat(fd, NULL, AT_FDCWD, "/path/for/file", AT_EMPTY_PATH);
> ^^^^^^
> as the linkat(2) page says "Empty String" not NULL.
Thanks! I'll send a patch to Michael.
Cheers,
Alex
--
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-02-26 20:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-26 17:10 bug in open(2) example Walter Harms
2021-02-26 20:03 ` Alejandro Colomar (man-pages)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox