Pathnames followed by "..." when printed using printpathn

Zubin Mithra zubin.mithra at gmail.com
Wed May 28 16:12:49 UTC 2014


Hi,

> printpathn is designed for printing paths, and paths cannot be longer than
> MAXPATHLEN.  Longer arguments would result to ENAMETOOLONG anyway, so
> there is no need to print more than MAXPATHLEN.

I did a few tests yesterday for fun and I got a surprising result for
getcwd. I've written about this at [1]. However, yes, I can't quite think
of a system call that would accept such a long path name.


[1]
http://x86overflow.blogspot.in/2014/05/playing-around-with-getcwd-readpath-and.html


Cheers,
-- zm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20140528/35b37a3c/attachment.html>


More information about the Strace-devel mailing list