Re: st_size of a symlink

From: Richard Weinberger
Date: Tue Jul 24 2012 - 06:17:44 EST


On 24.07.2012 01:13, Guillem Jover wrote:
Well, can't the link be accessed when getting the stat information
then?

Sure, but it's not trivial.

IMHO the lstat() and readlink() manpages have to be more precise
about st_size.

They document what POSIX says:

This does not make it any better...

Thanks,
//richard
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/