Hi

libkarma hasn't been finding my karma when I use it through lkarmafs.

This is because lk_mountSearch_discover() reads /proc/mounts into a 1024 byte buffer, but my /proc/mounts is currently 1874 bytes, and the karma entry is right at the end!

I suppose the proper way to handle this is to dynamically allocate the buffer, but I don't know how you'd get the size of /proc/mounts - fstat doesn't work because it's not a real file.

It'll be easiest just to increase the buffer size - would 4096 bytes be safe?

I would post a patch - but it hardly seems worth it!

Olly


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
linux-karma-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-karma-devel

Reply via email to