bug in open(2) example

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux