Re: [hackers] [sbase] [PATCH] ls: allow listing contents of directories with +r-x

From: Laslo Hunhold <dev_AT_frign.de>
Date: Sat, 21 Oct 2017 20:58:20 +0200

On Sat, 21 Oct 2017 14:17:25 +0100
Richard Ipsum <richardipsum_AT_fastmail.co.uk> wrote:

Hey Richard,

> Please correct me if I'm wrong but I'm given to understand that
> PATH_MAX is not a safe value to use here.[1]
>
> [1]:
> http://insanecoding.blogspot.co.uk/2007/11/pathmax-simply-isnt.html

yeah you're right, but the alternatives are very ugly. My stance is: As
long as you properly indicate to the user when a path-string has
overflowed, it's okay. And sbase has been used for a lot of things,
even very complex tasks, and there was no problem with the path
limitation.
It is recommended to use the *at-functions of course to reduce fiddling
with paths and so forth, however, it's not a high-priority issue at all
unless someone provides a very elegant solution for it.

With best regards

Laslo

-- 
Laslo Hunhold <dev_AT_frign.de>
Received on Sat Oct 21 2017 - 20:58:20 CEST

This archive was generated by hypermail 2.3.0 : Sat Oct 21 2017 - 21:00:21 CEST