From d8cb782cfb4f2a57b767584ebd38f84b94ed49b4 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sat, 31 Oct 2015 12:22:50 +0000 Subject: [PATCH] Reacting on (improbable) failure of burn_disc_pretend_full(). Coverity CID 21847. --- cdrskin/cdrskin.c | 5 +++++ cdrskin/cdrskin_timestamp.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/cdrskin/cdrskin.c b/cdrskin/cdrskin.c index f9bde34..c5c6580 100644 --- a/cdrskin/cdrskin.c +++ b/cdrskin/cdrskin.c @@ -6194,6 +6194,11 @@ int Cdrskin_blank(struct CdrskiN *skin, int flag) if(skin->force_is_set) { ClN(fprintf(stderr,"cdrskin: NOTE : -force blank=... : Treating unsuitable media as burn_disc_full\n")); ret= burn_disc_pretend_full(drive); + if(ret <= 0) { + ClN(fprintf(stderr, + "cdrskin: FAILURE : Medium still considered unsuitable\n")); + {ret= 0; goto ex;} + } s= burn_disc_get_status(drive); } else hint_force= 1; diff --git a/cdrskin/cdrskin_timestamp.h b/cdrskin/cdrskin_timestamp.h index 82c80ec..d8141ac 100644 --- a/cdrskin/cdrskin_timestamp.h +++ b/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2015.10.29.105609" +#define Cdrskin_timestamP "2015.10.31.122151"