On Mon, Oct 18, 2010 at 12:27:24PM +0200, Michelle Konzack wrote: > Am 2010-10-17 22:38:51, hacktest Du folgendes herunter: > > I created a patch to store the URL inside the user xattrs of the downloaded > > file; this way, its origin can be identified afterwards. > > > > I uploaded the change to my Github account and attached the diff, and I am > > still working on portability issues, but I'd like to hear some opinions on > > this: > > > > http://github.com/wertarbyte/wget/tree/xattrurl > > I am right that this works only on Windos and not GNU/Linux? > See my patch for wget <http://article.gmane.org/gmane.comp.web.wget.general/7894>. It works on GNU/Linux, IRIX and Darwin. Other option is to use libattr as the API is not standardized (it support IRIX and GNU/Linux only). FreeBSD has yet another API.
-- Petr
pgpWS1dbqNEpq.pgp
Description: PGP signature