diff options
author | kientzle <kientzle@FreeBSD.org> | 2008-11-27 06:21:04 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2008-11-27 06:21:04 +0000 |
commit | 8656c82d08fb6dc18ba3fc90988f6a0070664469 (patch) | |
tree | 4db4f4b6bf83f23438a9ed8104938d3372f41b8a /sys/fs | |
parent | 79862beef38c85d1c74cb37fc2705d3303f96bb0 (diff) | |
download | FreeBSD-src-8656c82d08fb6dc18ba3fc90988f6a0070664469.zip FreeBSD-src-8656c82d08fb6dc18ba3fc90988f6a0070664469.tar.gz |
The timezone byte is a signed value, treat it as such.
Otherwise, time zone information for time zones west of
GMT gets discarded.
PR: kern/128934
Submitted by: J.R. Oldroyd
MFC after: 4 days
Diffstat (limited to 'sys/fs')
-rw-r--r-- | sys/fs/cd9660/cd9660_node.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/cd9660/cd9660_node.c b/sys/fs/cd9660/cd9660_node.c index 699f0d9..90be9f3 100644 --- a/sys/fs/cd9660/cd9660_node.c +++ b/sys/fs/cd9660/cd9660_node.c @@ -241,7 +241,7 @@ cd9660_tstamp_conv7(pi,pu,ftype) minute = pi[4]; second = pi[5]; if(ftype != ISO_FTYPE_HIGH_SIERRA) - tz = pi[6]; + tz = ((signed char *)pi)[6]; /* Timezone value is signed. */ else /* original high sierra misses timezone data */ tz = 0; |