--- - branch: MAIN date: Wed Sep 2 04:19:52 UTC 2020 files: - new: '1.134' old: '1.133' path: src/usr.bin/make/dir.c pathrev: src/usr.bin/make/dir.c@1.134 type: modified id: 20200902T041952Z.45851a4eed37962b742d57211eb772dafa155666 log: | make(1): fix aliasing problem in cached_stat from the previous commit When the struct stat was used for both calling the actual stat and for returning the result, no copying was needed. This also had the side effect that for the first call of cached_stat, the returned struct stat included all the fields properly filled in, and on later calls, these fields were all zeroed out. These two variables are separate now, thus the fields need to be copied explicitly. There are no existing unit tests for this, but ./build.sh failed reliably. module: src subject: 'CVS commit: src/usr.bin/make' unixtime: '1599020392' user: rillig