]> sourceware.org Git - glibc.git/commit
io: Add error tests for fchmod
authorFlorian Weimer <fweimer@redhat.com>
Fri, 30 Aug 2024 18:37:18 +0000 (20:37 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 30 Aug 2024 19:12:01 +0000 (21:12 +0200)
commit424d97be50488beb6196c0ff0bc3dfeb87b4281c
treed6aa364c153bf41d0a551f78bbdfa267a7f41b8c
parent29f0db6a2e00fb17f5fe1eb1eee853436247ffe2
io: Add error tests for fchmod

On Linux most descriptors that do not correspond to file system
entities (such as anonymous pipes and sockets) have file permissions
that can be changed.  While it is possible to create a custom file
system that returns (say) EINVAL for an fchmod attempt, testing this
does not appear to be useful.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
io/Makefile
io/tst-fchmod-errors.c [new file with mode: 0644]
This page took 0.035298 seconds and 5 git commands to generate.