projects
/
debian
/
tar
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'upstream' into dfsg-orig, improve cleanup-script.sh
[debian/tar]
/
lib
/
mktime.c
diff --git
a/lib/mktime.c
b/lib/mktime.c
index 045f7d2d5251735df3437401213b76666fbb842d..776a48af3dbd44dae70f9d0d6f302d6fbf15ce65 100644
(file)
--- a/
lib/mktime.c
+++ b/
lib/mktime.c
@@
-292,7
+292,9
@@
__mktime_internal (struct tm *tp,
int mday = tp->tm_mday;
int mon = tp->tm_mon;
int year_requested = tp->tm_year;
int mday = tp->tm_mday;
int mon = tp->tm_mon;
int year_requested = tp->tm_year;
- int isdst = tp->tm_isdst;
+ /* Normalize the value. */
+ int isdst = ((tp->tm_isdst >> (8 * sizeof (tp->tm_isdst) - 1))
+ | (tp->tm_isdst != 0));
/* 1 if the previous probe was DST. */
int dst2;
/* 1 if the previous probe was DST. */
int dst2;