Re: stat(2): use lstat instead of stat in the example?

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

 



Hello Richard

On 16 October 2017 at 15:27, Richard Knutsson
<richard.knutsson@xxxxxxxxx> wrote:
> Hi,
>
> A college of mine was having a problem with the example-code on the
> stat/lstat/fstat-page, since it would never report a file as "symlink". It
> was a mistake on his part but is there a reason to use stat() instead of
> lstat() when the latter gives the expected result, IMHO?

I'm inclined to agree, and I've made the change in the page.

Thanks for the report!

Cheers,

Michael


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[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