From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Redefining the maximum path length [Fwd: Re: [GNUnet-developers] using $TMPDIR instead of /tmp] Date: Mon, 07 May 2018 18:37:31 +0200 Message-ID: <87wowf5sms.fsf@gnu.org> References: <20180506185923.rbzaa3jmck5k5iss@abyayala> <20180506191118.GA1898@jasmine.lan> <20180506192746.kgovlw3drfhofhkt@abyayala> <20180506194950.GC8038@jasmine.lan> <20180506201720.ag4u6irpwh4ibnsy@abyayala> <20180507050301.ohw5qnseqvg62gme@thebird.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59183) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fFj8q-0005uH-Vi for guix-devel@gnu.org; Mon, 07 May 2018 12:37:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fFj8n-0001Nc-LE for guix-devel@gnu.org; Mon, 07 May 2018 12:37:36 -0400 In-Reply-To: <20180507050301.ohw5qnseqvg62gme@thebird.nl> (Pjotr Prins's message of "Mon, 7 May 2018 07:03:01 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Pjotr Prins Cc: guix-devel@gnu.org Pjotr Prins skribis: > On Sun, May 06, 2018 at 08:17:20PM +0000, Nils Gillmann wrote: >> > That path is only 98 characters long. What limit do you think it is >> > exceeding? > > It may be a shell restriction rather than a kernel restriction. It=E2=80=99s a kernel restriction. I think the main reason for these arbitrary limits is that in C it=E2=80=99s easier to deal with fixed-size arrays than with dynamically-allocated arrays. :-) (A valid argument to limiting the length of file names is that it could make it easy to DoS a system. But then, that limit could very well be configurable at run time, pretty much like rlimits, if it were the only reason=E2=80=A6) Ludo=E2=80=99.