[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacs & MAXPATHLEN

From: Jan D.
Subject: Re: emacs & MAXPATHLEN
Date: Sat, 30 Jul 2005 20:18:30 +0200

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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]