News for hackers. Stuff that matters.
Re:What's New in POSIX 2024 by account42 on Tuesday October 29, 2024 @08:22AM (#41983136)
Their proposed solution is not compatible with reality though where POSIX does not get to define what kind of files exist on filesystems you need to work with.

All they did is introduce new error cases in C programs while not actually fixing anything for shell scripts.

If anything, it's going to result in more exploits as people write shell scripts with the assumption that newlines cannot appear in filenames.

Re:What's New in POSIX 2024 by quotemstr on Tuesday October 29, 2024 @10:54AM (#41984448)
In the real world, nobody writes shell scripts that handle newlines in filenames.
Re:What's New in POSIX 2024 by account42 on Tuesday October 29, 2024 @12:11PM (#41985752)
I do. Single files are handled with quotes around arguments just fine. For lists of files you need to use NUL as a separator. That's not really hard to do once you are aware of the problem but ergonomics could be better - which is something useful that POSIX could change.
Re:What's New in POSIX 2024 by quotemstr on Saturday November 02, 2024 @05:50PM (#42029456)
Most shell scripts that correctly handle newlines do so by accident.
Re:What's New in POSIX 2024 by account42 on Monday November 04, 2024 @03:39AM (#42039676)
Because they don't deal with lists of files so this whole issue doesn't apply? Yes. Even more reason to just fix the shell scripts where this matters instead of trying to impose additional restrictions on filesystems with many decades of history.