1. 23 6月, 2005 36 次提交
  2. 22 6月, 2005 4 次提交
    • J
      [PATCH] isofs: show hidden files, add granularity for assoc/hidden files flags · 9769f4eb
      Jeremy White 提交于
      The current isofs treatment of hidden files is flawed in two ways.  First,
      it does not provide sufficient granularity; it hides both 'hidden' files
      and 'associated' files (resource fork for Mac files).  Second, the default
      behavior to completely strip hidden files, while an admirable
      implementation of the spec, is a poor choice given the real world use of
      hidden files as a poor mans copy protection scheme for MSDOS and Windows
      based systems.  A longer description of this is available here:
      
         http://www.uwsg.iu.edu/hypermail/linux/kernel/0205.3/0267.html
      
      This patch was originally built after a few private conversations with Alan
      Cox; I shamefully failed to persist in seeing it go forward, I hope to make
      amends now.
      
      This patch introduces granularity by allowing explicit control for both
      hidden and associated files.  It also reverses the default so that by
      default, hidden files are treated as regular files on the iso9660 file
      system.
      
      This allow Wine to process Windows CDs, including those that are hybrid
      Mac/Windows CDs properly and completely, without our having to go muck up
      peoples fstabs as we do now.  (I have tested this with such a hybrid +
      hidden CD and have verified that this patch works as claimed).
      Signed-off-by: NJeremy White <jwhite@codeweavers.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      9769f4eb
    • A
      [PATCH] rock: handle directory overflows · f2966632
      Andrew Morton 提交于
      Handle the case where the variable-sized part of a rock-ridge directory entry
      overhangs the end of the buffer which we allocated for it.
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      f2966632
    • A
      [PATCH] rock: rename union members · 642217c1
      Andrew Morton 提交于
      The silly thing does:
      
      	struct foo { ... };
      	...
      	#define foo 42
      
      so you can no longer refer to `struct foo' in C code.
      
      Rename the structures.
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      642217c1
    • A
      [PATCH] rock.c: handle corrupted directories · e595447e
      Andrew Morton 提交于
      The bug in rock.c is that it's totally trusting of the contents of the
      directories.  If the directory says there's a continuation 10000 bytes into
      this 4k block then we cheerily poke around in memory we don't own and oops.
      
      So change rock_continue() to apply various sanity checks, at least ensuring
      that the offset+length remain within the bounds for the header part of a
      struct rock_ridge directory entry.
      
      Note that the kernel can still overindex the buffer due to the variable size
      of the rock-ridge directory entries.  We cannot check that in rock_continue()
      unless we go parse the directory entry's signature and work out its size.
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      e595447e