Bug 1458008
| Summary: | test builtin ignores subsecond while comparing file modification times | |||
|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Roman Žilka <rzilka> | |
| Component: | bash | Assignee: | Siteshwar Vashisht <svashisht> | |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | |
| Severity: | unspecified | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 25 | CC: | admiller, jskarvad, kdudka, svashisht | |
| Target Milestone: | --- | Keywords: | EasyFix, Patch | |
| Target Release: | --- | |||
| Hardware: | x86_64 | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | bash-4.4.12-6.fc26 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1458178 (view as bug list) | Environment: | ||
| Last Closed: | 2017-07-07 23:06:56 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1458178 | |||
|
Description
Roman Žilka
2017-06-01 18:21:04 UTC
Thank you for reporting the bug! This seems to be caused by the get_stat_mtime_ns() function returning 0 because of STAT_TIMESPEC and STAT_TIMESPEC_NS not being defined. The autoconf tests check for sub-second precision for atime only, so we end up with HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC not being defined. But it doe not mean that we cannot obtain mtime with sub-second precision. In fact, strace shows that bash gets precise enough data but, if I stop gdb in timespec_cmp(), the tv_nsec fields are always zero. Note that this bug is specific to bash. ksh, zsh, and coreutils seem compare mtime with sub-second precision. Fixed in upstream http://git.savannah.gnu.org/cgit/bash.git/commit/?id=b90cb5a280ebb8ac03306a5b19aea6b997c71ee7 bash-4.4.12-6.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-2b6507886b bash-4.4.12-6.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-2b6507886b bash-4.4.12-6.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report. |