From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: emacs & MAXPATHLEN Date: Sat, 30 Jul 2005 21:06:19 +0300 Message-ID: References: <87fytzj6a7.fsf@gmail.com> <87pst2h35e.fsf@gmail.com> <87r7dhxenv.fsf@gmail.com> <1122724400.456845.1155.nullmailer@Update.UU.SE> Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1122747182 5366 80.91.229.2 (30 Jul 2005 18:13:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 30 Jul 2005 18:13:02 +0000 (UTC) Cc: gscrivano@gmail.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 30 20:12:59 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DyvpS-0008Uc-Eg for ged-emacs-devel@m.gmane.org; Sat, 30 Jul 2005 20:12:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dyvs1-0004iq-7C for ged-emacs-devel@m.gmane.org; Sat, 30 Jul 2005 14:15:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dyvqo-0004QC-1s for emacs-devel@gnu.org; Sat, 30 Jul 2005 14:14:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dyvqk-0004OS-MZ for emacs-devel@gnu.org; Sat, 30 Jul 2005 14:14:20 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dyvqi-0004Mm-Tm for emacs-devel@gnu.org; Sat, 30 Jul 2005 14:14:16 -0400 Original-Received: from [192.114.186.24] (helo=legolas.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Dyvur-0007H7-VW for emacs-devel@gnu.org; Sat, 30 Jul 2005 14:18:34 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-84-228-241-92.inter.net.il [84.228.241.92]) by legolas.inter.net.il (MOS 3.5.8-GR) with ESMTP id FAG10903 (AUTH halo1); Sat, 30 Jul 2005 21:06:19 +0300 (IDT) Original-To: Andreas Schwab In-reply-to: (message from Andreas Schwab on Sat, 30 Jul 2005 19:35:19 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:41354 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:41354 > From: Andreas Schwab > Cc: ams@gnu.org, gscrivano@gmail.com, rms@gnu.org, > emacs-devel@gnu.org > Date: Sat, 30 Jul 2005 19:35:19 +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?