diff options
author | Alex White <alex.white@oarcorp.com> | 2021-10-04 14:24:02 -0500 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2021-10-04 17:18:13 -0500 |
commit | 772ffc070455bdfe7a5e0970bf34655e5cf51fb8 (patch) | |
tree | 4b0de156206aac88e8a249a166c9dd0cf1a5fea2 /testsuites/fstests/fslink/imfs_fslink.scn | |
parent | cpukit/aarch64: Use correct interrupt level types (diff) | |
download | rtems-772ffc070455bdfe7a5e0970bf34655e5cf51fb8.tar.bz2 |
testsuites/fstests: Fix uninitialized utimbuf structs
The utimbuf structs in fsimfsconfig01 and fsimfsconfig02 were
being passed to utime uninitialized. This did not cause problems until
utime was changed to use utimensat behind the scenes. Now that
utimensat is called, the values of the utimbuf struct are checked, and
EINVAL is set for invalid values. The utimebuf structs in these tests
could contain invalid values since they are uninitialized.
By zero-initializing the utimbuf structs, we ensure that they pass the
checks in utimensat and that errno is set to the expected ENOTSUP.
Diffstat (limited to 'testsuites/fstests/fslink/imfs_fslink.scn')
0 files changed, 0 insertions, 0 deletions