netatalk 2.2.0 bug report
Laura Müller <Laura-Mueller <at> uni-duesseldorf.de>
2011-08-09 06:00:47 GMT
Hello!
A few days ago I set up a test system with netatalk 2.2.0 based on debian testing AMD64 (latest build) and discovered a nasty bug that took me 2 sleepless nights to track down.
Description:
Connecting to an acl enabled volume using the same user that is logged in on the client, the volume is write protected. Both client and server are part of an OD domain.
Solution:
In etc/afpd/dircache.c the function dircache_init() doesn't initialize rootParent.d_rights_cache so that the default value of 0 gets used and check_acl_access never calculates proper access rights.
Adding the line
rootParent.d_rights_cache = 0xffffffff;
to dircache_init() resolved the issue. I checked latest source code via
sourceforge.net and was astounded to see that even the newest version is affected.
Regards,
Laura Müller
------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model
configuration take the hassle out of deploying and managing Subversion and
the tools developers use with it. Learn more about uberSVN and get a free
download at: http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Netatalk-devel mailing list
Netatalk-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/netatalk-devel