From d51e3c49cfb6593687f04c7c85d91b426685e8c8 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sat, 26 Nov 2011 15:32:03 +0000 Subject: [PATCH] Bug fix: Solaris adapter mishandled write commands which failed on first try --- libburn/trunk/cdrskin/cdrskin_timestamp.h | 2 +- libburn/trunk/libburn/sg-solaris.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libburn/trunk/cdrskin/cdrskin_timestamp.h b/libburn/trunk/cdrskin/cdrskin_timestamp.h index 0c8dea52..6488b6b6 100644 --- a/libburn/trunk/cdrskin/cdrskin_timestamp.h +++ b/libburn/trunk/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2011.11.23.104948" +#define Cdrskin_timestamP "2011.11.26.153142" diff --git a/libburn/trunk/libburn/sg-solaris.c b/libburn/trunk/libburn/sg-solaris.c index debc5976..3c5818b4 100644 --- a/libburn/trunk/libburn/sg-solaris.c +++ b/libburn/trunk/libburn/sg-solaris.c @@ -586,7 +586,6 @@ int sg_issue_command(struct burn_drive *d, struct command *c) static FILE *fp = NULL; c->error = 0; - memset(c->sense, 0, sizeof(c->sense)); if (d->fd == -1) return 0; @@ -632,6 +631,7 @@ int sg_issue_command(struct burn_drive *d, struct command *c) timeout_ms = 200000; for(i = 0; !done; i++) { + memset(c->sense, 0, sizeof(c->sense)); ret = ioctl(d->fd, USCSICMD, &cgc); /* For cgc.uscsi_status see SAM-3 5.3.1, Table 22