summaryrefslogtreecommitdiffstats
path: root/sysutils/brasero
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2009-10-09 12:09:11 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2009-10-09 12:09:11 +0800
commit52242e92ef3aaf1f3360af05cff39cce73e076a8 (patch)
tree9a36583ae42eec4d200677c0adfb5b9eb762582e /sysutils/brasero
parent7f326fcef006bcfc7b7c440a84e4431821b34d46 (diff)
downloadmarcuscom-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.c19
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;
}