Skip to contentSkip to conversation

bug in open(2) example

DISCUSSION Walter Harms 2 participants 2 messages Feb 26, 2021 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#1 lore raw

Hi Walter,

Quoted 4 lines · Walter Harms

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

Signature · 3 lines
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/