[Debburn-changes] r648 - in cdrkit/trunk: . wodim
Eduard Bloch
blade at alioth.debian.org
Thu Dec 28 23:28:29 CET 2006
Author: blade
Date: 2006-12-28 23:28:29 +0100 (Thu, 28 Dec 2006)
New Revision: 648
Modified:
cdrkit/trunk/Changelog
cdrkit/trunk/wodim/wodim.c
Log:
setting argv[0] to wodim if someone is cheating and calls it as cdrecord
Modified: cdrkit/trunk/Changelog
===================================================================
--- cdrkit/trunk/Changelog 2006-12-28 20:47:46 UTC (rev 647)
+++ cdrkit/trunk/Changelog 2006-12-28 22:28:29 UTC (rev 648)
@@ -15,6 +15,8 @@
* get maximum DMA buffer size from sysfs on Linux, where possible
* enable BURN-Free by default where possible
* genisoimage documentation updates, mkisofs name changes
+ * setting argv[0] to wodim if someone is cheating and calls it as cdrecord.
+ Avoids confusion and printing of the wrong app name in the help output.
[ Thomas Schmidt ]
* workaround for older libmagic API
Modified: cdrkit/trunk/wodim/wodim.c
===================================================================
--- cdrkit/trunk/wodim/wodim.c 2006-12-28 20:47:46 UTC (rev 647)
+++ cdrkit/trunk/wodim/wodim.c 2006-12-28 22:28:29 UTC (rev 648)
@@ -296,6 +296,9 @@
BOOL is_cdwr = FALSE;
BOOL is_dvdwr = FALSE;
+ buf=strstr(argv[0], "cdrecord");
+ if(buf && '\0' == buf[8]) /* lame cheater detected */
+ argv[0]="wodim";
#ifdef __EMX__
/* This gives wildcard expansion with Non-Posix shells with EMX */
More information about the Debburn-changes
mailing list