Skip to contentSkip to conversation

RFC: broken directory separators in acorn-generated isofs images

PATCH Christoph Hellwig 1 participant 1 message May 22, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

This is a really old patch from the Debian kernel package, and I wonder whethere there's any way in which it could be harmfull.

* Fix slashes in broken Acorn ISO9660 images in fs/isofs/dir.c (Darren Salt)

fs/isofs/dir.c +2 -1
@@ -64,7 +64,8 @@
 			break;
 
 		/* Convert remaining ';' to '.' */
-		if (c == ';')
+		/* Also '/' to '.' (broken Acorn-generated ISO9660 images) */
+		if (c == ';' || c == '/')
 			c = '.';
 
 		new[i] = c;