Daily Shaarli

All links of one day in a single page.

March 17, 2019

Fixing Unix/Linux/POSIX Filenames: Control Characters (such as Newline), Leading Dashes, and Other Problems

Traditionally, Unix/Linux/POSIX pathnames and filenames can be almost any sequence of bytes. A pathname lets you select a particular file, and may include zero or more “/” characters. Each pathname component (separated by “/”) is a filename; filenames cannot contain “/”. Neither filenames nor pathnames can contain the ASCII NUL character (\0), because that is the terminator. This lack of limitations is flexible, but it also creates a legion of unnecessary problems. In particular, this lack of limitations makes it unnecessarily difficult to write correct programs (enabling many security flaws). It also makes it impossible to consistently and accurately display filenames, causes portability problems, and confuses users.

About this website | LOW←TECH MAGAZINE

This website is a solar-powered, self-hosted version of Low-tech Magazine. It has been designed to radically reduce the energy use associated with accessing our content.

SUSE Completes Move to Independence, Reaffirms Commitment to Customers, Partners and Open Source Communities as Industry’s Largest Independent Open Source Company - SUSE Communities

SUSE adds C-level executives to ensure continued success, momentum and growth as a leading provider of enterprise-grade, open source software-defined infrastructure and application delivery solutions to enable hybrid and multi-cloud workload management