On 2024-12-08 14:06, Brian Inglis via tz wrote:
Disallowing these would also likely disallow variations on:
$ zdump /usr/share/zoneinfo/.../...
$ zdump <(...)
unless you just check the magic cookie?
It shouldn't disallow the first variation, assuming the attached proposed patch which I've installed into the development repository. That's because /usr/share/zoneinfo/whatever is a regular file. Although it disallows the second variation, that's also true for zdump when built with glibc, which uses lseek to move around in the TZif file. The second variation causes such a zdump to read from a pipe where the lseek fails which means glibc tzset fails. Perhaps we can change zdump to allow that sort of thing, but this will need further thought.