diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2009-10-09 12:09:11 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2009-10-09 12:09:11 +0800 |
commit | 52242e92ef3aaf1f3360af05cff39cce73e076a8 (patch) | |
tree | 9a36583ae42eec4d200677c0adfb5b9eb762582e /sysutils/brasero | |
parent | 7f326fcef006bcfc7b7c440a84e4431821b34d46 (diff) | |
download | marcuscom-ports-52242e92ef3aaf1f3360af05cff39cce73e076a8.tar marcuscom-ports-52242e92ef3aaf1f3360af05cff39cce73e076a8.tar.gz marcuscom-ports-52242e92ef3aaf1f3360af05cff39cce73e076a8.tar.bz2 marcuscom-ports-52242e92ef3aaf1f3360af05cff39cce73e076a8.tar.lz marcuscom-ports-52242e92ef3aaf1f3360af05cff39cce73e076a8.tar.xz marcuscom-ports-52242e92ef3aaf1f3360af05cff39cce73e076a8.tar.zst marcuscom-ports-52242e92ef3aaf1f3360af05cff39cce73e076a8.zip |
Save the errno before calling close().
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@13103 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'sysutils/brasero')
-rw-r--r-- | sysutils/brasero/files/patch-libbrasero-media_scsi-cam.c | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/sysutils/brasero/files/patch-libbrasero-media_scsi-cam.c b/sysutils/brasero/files/patch-libbrasero-media_scsi-cam.c index fe31c298c..848148295 100644 --- a/sysutils/brasero/files/patch-libbrasero-media_scsi-cam.c +++ b/sysutils/brasero/files/patch-libbrasero-media_scsi-cam.c @@ -1,12 +1,25 @@ ---- libbrasero-media/scsi-cam.c.orig 2009-10-08 22:34:11.000000000 -0400 -+++ libbrasero-media/scsi-cam.c 2009-10-08 22:35:09.000000000 -0400 -@@ -193,6 +193,9 @@ brasero_device_handle_open (const gchar +--- libbrasero-media/scsi-cam.c.orig 2009-09-25 10:39:03.000000000 -0400 ++++ libbrasero-media/scsi-cam.c 2009-10-09 00:06:22.000000000 -0400 +@@ -184,6 +184,8 @@ brasero_device_handle_open (const gchar + handle->fd = fd; + } + else { ++ int serrno; ++ + if (code) { + if (errno == EAGAIN + || errno == EWOULDBLOCK +@@ -193,6 +195,13 @@ brasero_device_handle_open (const gchar *code = BRASERO_SCSI_ERRNO; } ++ serrno = errno; ++ + if (fd > -1) + close (fd); + ++ errno = serrno; ++ return NULL; } |