commit | bce1ff5f881c3fe7b921637af2ee06dd0cdceef4 | [log] [tgz] |
---|---|---|
author | Dmitry V. Levin <ldv@altlinux.org> | Thu Mar 12 16:59:01 2015 +0000 |
committer | Dmitry V. Levin <ldv@altlinux.org> | Mon Mar 16 14:23:09 2015 +0000 |
tree | 8fcd5b31784abdc442143ef52d6384b1f5b014bd | |
parent | 499c5aad0c2a4204ce28bd7761cabe9ceba57bec [diff] |
Fix stat64 st_[acm]time decoding for personalities with 32-bit time_t STRUCT_STAT.st_[acm]time are declared as unsigned int for some personalities, while time_t is signed. * printstat.h (DO_PRINTSTAT): If st_[acm]time have the same size as int, explicitly cast them to int. * tests/stat64-v.test: Test that negative time_t is decoded properly. Reported-by: Andreas Schwab <schwab@suse.de>