File ifd-gempc-1.0.0-devname.diff of Package pcsc-gempc

--- GemPC410/GemPC410Utils.c
+++ GemPC410/GemPC410Utils.c
@@ -71,13 +71,13 @@
 				if (channel == 0x0102E8)
 					channel = 4;
 
-	if (channel < 0)
+	if (channel < 1 || channel > 16)
 	{
 		DEBUG_CRITICAL2("wrong port number: %d", (int) channel);
 		return STATUS_UNSUCCESSFUL;
 	}
 
-	sprintf(dev_name, "/dev/pcsc/%d", (int) channel);
+	sprintf(dev_name, "/dev/ttyS%d", (int) channel - 1);
 
 	return OpenGemPC410ByName(lun, dev_name);
 }	/* OpenGemPC410 */