diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2009-10-09 11:59:16 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2009-10-09 11:59:16 +0800 |
commit | 7f326fcef006bcfc7b7c440a84e4431821b34d46 (patch) | |
tree | 15291eb0c7294889eae61e1efe0736958b49a529 /sysutils/brasero/files | |
parent | 4b4bf61af48510c9b0c614bde998a58d20d844b3 (diff) | |
download | marcuscom-ports-7f326fcef006bcfc7b7c440a84e4431821b34d46.tar marcuscom-ports-7f326fcef006bcfc7b7c440a84e4431821b34d46.tar.gz marcuscom-ports-7f326fcef006bcfc7b7c440a84e4431821b34d46.tar.bz2 marcuscom-ports-7f326fcef006bcfc7b7c440a84e4431821b34d46.tar.lz marcuscom-ports-7f326fcef006bcfc7b7c440a84e4431821b34d46.tar.xz marcuscom-ports-7f326fcef006bcfc7b7c440a84e4431821b34d46.tar.zst marcuscom-ports-7f326fcef006bcfc7b7c440a84e4431821b34d46.zip |
When opening a device fails, be sure to close the file descriptor, or we
will leak descriptors, and possibly prevent device mounting.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@13102 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'sysutils/brasero/files')
-rw-r--r-- | sysutils/brasero/files/patch-libbrasero-media_scsi-cam.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sysutils/brasero/files/patch-libbrasero-media_scsi-cam.c b/sysutils/brasero/files/patch-libbrasero-media_scsi-cam.c new file mode 100644 index 000000000..fe31c298c --- /dev/null +++ b/sysutils/brasero/files/patch-libbrasero-media_scsi-cam.c @@ -0,0 +1,12 @@ +--- 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 + *code = BRASERO_SCSI_ERRNO; + } + ++ if (fd > -1) ++ close (fd); ++ + return NULL; + } + |