svn commit: r185361 - head/sys/fs/cd9660

Tim Kientzle kientzle at FreeBSD.org
Wed Nov 26 22:21:05 PST 2008


Author: kientzle
Date: Thu Nov 27 06:21:04 2008
New Revision: 185361
URL: http://svn.freebsd.org/changeset/base/185361

Log:
  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

Modified:
  head/sys/fs/cd9660/cd9660_node.c

Modified: head/sys/fs/cd9660/cd9660_node.c
==============================================================================
--- head/sys/fs/cd9660/cd9660_node.c	Thu Nov 27 05:49:52 2008	(r185360)
+++ head/sys/fs/cd9660/cd9660_node.c	Thu Nov 27 06:21:04 2008	(r185361)
@@ -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;


More information about the svn-src-all mailing list