Fix test for file modification times when they differ below whole seconds

Resolves: #1458008
This commit is contained in:
Siteshwar Vashisht 2017-06-30 17:43:51 +02:00
parent 9450c8fc04
commit 92a12693c1
2 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,11 @@
diff --git a/config.h.in b/config.h.in
--- a/config.h.in
+++ b/config.h.in
@@ -449,6 +449,7 @@
#undef SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
#undef PTHREAD_H_DEFINES_STRUCT_TIMESPEC
+#undef HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC
#undef TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC
#undef HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC
#undef HAVE_STRUCT_STAT_ST_ATIMENSEC

View File

@ -7,7 +7,7 @@
Version: %{baseversion}%{patchleveltag} Version: %{baseversion}%{patchleveltag}
Name: bash Name: bash
Summary: The GNU Bourne Again shell Summary: The GNU Bourne Again shell
Release: 5%{?dist} Release: 6%{?dist}
License: GPLv3+ License: GPLv3+
Url: http://www.gnu.org/software/bash Url: http://www.gnu.org/software/bash
Source0: ftp://ftp.gnu.org/gnu/bash/bash-%{baseversion}.tar.gz Source0: ftp://ftp.gnu.org/gnu/bash/bash-%{baseversion}.tar.gz
@ -89,6 +89,10 @@ Patch129: bash-4.4-unset-nonblock-stdin.patch
# This should be dropped while rebasing to bash-4.5 # This should be dropped while rebasing to bash-4.5
Patch130: bash-4.4-assignment-error.patch Patch130: bash-4.4-assignment-error.patch
# 1458008 - test builtin gives wrong result when file modification times differ below whole seconds
# This should be dropped while rebasing to bash-4.5
Patch131: bash-4.5-test-modification-time.patch
BuildRequires: texinfo bison BuildRequires: texinfo bison
BuildRequires: ncurses-devel BuildRequires: ncurses-devel
BuildRequires: autoconf, gettext BuildRequires: autoconf, gettext
@ -300,6 +304,10 @@ end
%doc doc/*.ps doc/*.0 doc/*.html doc/article.txt %doc doc/*.ps doc/*.0 doc/*.html doc/article.txt
%changelog %changelog
* Fri Jun 30 2017 Siteshwar Vashisht <svashisht@redhat.com> - 4.4.12-6
- Fix test for file modification times when they differ below whole seconds
Resolves: #1458008
* Tue May 30 2017 Siteshwar Vashisht <svashisht@redhat.com> - 4.4.12-5 * Tue May 30 2017 Siteshwar Vashisht <svashisht@redhat.com> - 4.4.12-5
- command builtin should not abort on variable assignment errors - command builtin should not abort on variable assignment errors
Resolves: #1389838 Resolves: #1389838