|
Oleh Derevenko
|
Wrong size returned by readdir for /proc
|
|
Oleh Derevenko
01/05/2012 5:42 AM
post90847
|
Wrong size returned by readdir for /proc
Hi,
In QNX650, while calling readdir() for root folder, for "proc" entry dirent::d_namelen comes with value of 6, while
normally it would have to be 5 (the length + zero terminator).
While being easy to work around, it's still unpleasant to have to be doing strlen() for every directory entry and re-
validating everything because of this bug.
|
|
|
|
|