Changeset 772ffc07 in rtems

Timestamp:
10/04/21 19:24:02 (3 years ago)
Author:
Alex White <alex.white@…>
Branches:
master
Children:
4a5a4145
Parents:
9c2cb68
git-author:
Alex White <alex.white@…> (10/04/21 19:24:02)
git-committer:
Joel Sherrill <joel@…> (10/04/21 22:18:13)
Message:

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.

(No files)

Note: See TracChangeset for help on using the changeset viewer.