chiark / gitweb /
tmpdir.c: Be more helpful if owner lacks permissions on the directory.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 7 Jul 2024 21:01:34 +0000 (22:01 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 7 Jul 2024 21:01:34 +0000 (22:01 +0100)
commit995186ff19a5a2388b5de61928d62bb68e618612
tree5a82cbc7399ad79e5184547b2d6dcba2f01cf4d0
parent7b5e7899240bb934fa8ee9844ebdadca0a097add
tmpdir.c: Be more helpful if owner lacks permissions on the directory.

Previously, we'd report `non-owner access permitted', which was exactly
wrong.

This is a functionality check rather than a security check, so I'm not
completely convinced that this is something tmpdir(1) should be
checking.  But it always has done so there's not much reason to stop
now.
tmpdir.c