diff --git a/NEWS b/NEWS index d659e80..9b33344 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,5 @@ - add sendiso and dumpiso tools with man files +- fix wrong error mapping on local transactions in raw1394_errcode_to_errno(). Version 0.9: diff --git a/src/errors.c b/src/errors.c index 8f5b5a4..08ce425 100644 --- a/src/errors.c +++ b/src/errors.c @@ -61,7 +61,8 @@ int raw1394_errcode_to_errno(raw1394_errcode_t errcode) }; if (!raw1394_internal_err(errcode)) { - if (raw1394_get_ack(errcode) == L1394_ACK_PENDING) + if (raw1394_get_ack(errcode) == 0x10 + || raw1394_get_ack(errcode) == L1394_ACK_PENDING) return rcode2errno[raw1394_get_rcode(errcode)]; else return ack2errno[raw1394_get_ack(errcode)];