--- /c/Python27/lib/zipfile_orig.py Thu Oct 17 16:23:35 2013 +++ /c/Python27/lib/zipfile.py Thu Oct 17 16:24:05 2013 @@ -970,10 +970,10 @@ if fheader[_FH_EXTRA_FIELD_LENGTH]: zef_file.read(fheader[_FH_EXTRA_FIELD_LENGTH]) - if fname != zinfo.orig_filename: + if os.path.basename(fname) != os.path.basename(zinfo.orig_filename): raise BadZipfile, \ 'File name in directory "%s" and header "%s" differ.' % ( - zinfo.orig_filename, fname) + os.path.basename(zinfo.orig_filename), os.path.basename(fname)) # check for encrypted flag & handle password is_encrypted = zinfo.flag_bits & 0x1