[Debburn-changes] r697 - cdrkit/trunk/wodim

Eduard Bloch blade at alioth.debian.org
Sat Jan 27 16:09:22 CET 2007


Author: blade
Date: 2007-01-27 16:09:21 +0100 (Sat, 27 Jan 2007)
New Revision: 697

Modified:
   cdrkit/trunk/wodim/wodim.c
Log:
Fallback to /dev/cdrom if no recorder found, and better(?) messages

Modified: cdrkit/trunk/wodim/wodim.c
===================================================================
--- cdrkit/trunk/wodim/wodim.c	2007-01-26 00:38:32 UTC (rev 696)
+++ cdrkit/trunk/wodim/wodim.c	2007-01-27 15:09:21 UTC (rev 697)
@@ -3759,7 +3759,7 @@
 			guessdev="/dev/dvdrw";
 		}
 
-		fprintf(stderr, "Quickly guessing the name of a drive capable to write %s, please wait...\n", type);
+		fprintf(stderr, "INFO: no %s recorder specified. Looking for a usable drive, please wait...\n", type);
 		if(0==stat(guessdev, &statbuf))
 			result=guessdev;
 		else if(0!= (fh = fopen("/proc/sys/dev/cdrom/info", "r")) ) {
@@ -3809,8 +3809,10 @@
 			*devp=result;
 		}
 		else {
-			fprintf(stderr,	"Unable to guess the target drive. Please specify manually using\n"
-					"dev=... argument or other configuration methods, see wodim(1) for details.\n");
+			fprintf(stderr,	"Unable to guess the target %s writer. Please specify manually using\n"
+					"dev=... argument or other configuration methods, see wodim(1) for details.\n"
+                    "Assuming dev=/dev/cdrom for now.\n", type);
+            result="/dev/cdrom";
 		}
 #else
 		printf("Guessing of a capable drive not implemented for this plattform yet.\nUse dev=... and --devices to get a list of available drives.\n");




More information about the Debburn-changes mailing list