From: René 'N. N. <li...@ne...> - 2008-04-07 23:33:38
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 René 'Necoro' Neumann schrieb: > Forest Bond schrieb: > >> Actually, either should work as the C code just uses getattr (from what I can >> tell), and both object types (stat_result and Stat) have attributes with the >> right names. > > The issue is, that though "HasAttr" will return True, the values are > unset (i.e. "None"). But it isn't checked for None anywhere. Thus, them > being None results in an error and aborts the operation. > > I'm currently trying to patch it, but this macro hackery in fuse-python > is really really bad. I'll see, what I can get done... Ok - here is a patch. This really is spaghetti code (using on-the-fly generated label names and similar stuff). Perhaps one can rewrite it, but it seems to work for me... Regards, Necoro -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFH+q9K4UOg/zhYFuARAob2AJ96z9zgp3fvpr4Ak3CXhJeVdATanACcDav2 1bB6jPglJ2QP6kKuHcyaKec= =dC04 -----END PGP SIGNATURE----- |