You can easily create a deeply nested directory whose absolute file name is longer than MAXPATHLEN. The MAXPATHLEN (a.k.a PATH_MAX) parameter only limits the length of the file name that can be passed to system calls, but has no connection to maximum length of an (absoulte) file name in a system (you can create virtually infinite long file names on Linux, for example).


But in this case, the file name we are talking about was _produced_ by
a function, i.e. by some system call.  I don't think such a file name
can exceed the syscall limits, can it?

Well, if you have a directory on one filesystem with MAXPATHLEN and then mount another filesystem under that directory, that would make all paths in the mounted file system exceed MAXPATHLEN. In theory at least, I haven't tried it.

    Jan D.



_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

Reply via email to