From 5c423e0640bcad0eb90d9c968658347228bc2818 Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Thu, 27 Nov 2008 06:21:04 +0000 Subject: [PATCH] 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 --- sys/fs/cd9660/cd9660_node.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/fs/cd9660/cd9660_node.c b/sys/fs/cd9660/cd9660_node.c index 699f0d9114e1..90be9f3eeebe 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;