Skip to contentSkip to conversation

fix cdroms with devfs

PATCH New Jordan Breeding 1 participant 1 message Oct 4, 2002

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix cdroms with devfs

Hello,

This patch fixes the case where devfs in 2.5.x currently makes a
/dev/cdroms/cdroms directory instead of a /dev/cdroms directory like it used to. Thanks.

Jordan

fs/partitions/check.c +1 -1
@@ -348,7 +348,7 @@
 		cdroms = devfs_mk_dir (NULL, "cdroms", NULL);
 
 	dev->number = devfs_alloc_unique_number(&cdrom_numspace);
-	sprintf(vname, "cdroms/cdrom%d", dev->number);
+	sprintf(vname, "cdrom%d", dev->number);
 	if (dev->de) {
 		int pos;
 		devfs_handle_t slave;