-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Liyang HU on 1/11/2007 6:29 PM:
> 
> [0] I know, lstat() should report the on-disk usage of the symlink; however
> I thought of more nefarious uses for st_size. Consider my FS braindead if
> you will, but xreadlink() needn't fail...

Sorry - if your FS violates POSIX, then why should you expect sane
behavior from tools that assume POSIX?  POSIX gives you permission to use
a number of fields in struct stat for your own purposes on symlinks, but
not st_size.  By violating that rule of POSIX, the bug is squarely on your
FS's shoulders, and you are fighting an uphill battle because it will be
more than ls that are affected.  I would recommend fixing your FS instead.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             [EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFp6mQ84KuGfSFAYARAiAYAKC7siTLvdaqAjdWsGxwzqpmEIUQuACaA8U7
wXvhoBWGFYXzx6zhl5oPVEA=
=dcvl
-----END PGP SIGNATURE-----


Reply via email to