brasero r2015 - in trunk: . libbrasero-media
- From: philippr svn gnome org
- To: svn-commits-list gnome org
- Subject: brasero r2015 - in trunk: . libbrasero-media
- Date: Fri, 27 Feb 2009 19:41:43 +0000 (UTC)
Author: philippr
Date: Fri Feb 27 19:41:43 2009
New Revision: 2015
URL: http://svn.gnome.org/viewvc/brasero?rev=2015&view=rev
Log:
2009-02-27 Philippe Rouquier <bonfire-app wanadoo fr>
O_EXCEL is not supported by Open Solaris: remove it
Fix #573060 â exclusively open with O_EXCL isn't supported by Solaris
Patch by Lin Ma
* libbrasero-media/scsi-uscsi.c (brasero_device_handle_open):
Modified:
trunk/ChangeLog
trunk/libbrasero-media/scsi-uscsi.c
Modified: trunk/libbrasero-media/scsi-uscsi.c
==============================================================================
--- trunk/libbrasero-media/scsi-uscsi.c (original)
+++ trunk/libbrasero-media/scsi-uscsi.c Fri Feb 27 19:41:43 2009
@@ -66,7 +66,7 @@
#define BRASERO_SCSI_CMD_OPCODE_OFF 0
#define BRASERO_SCSI_CMD_SET_OPCODE(command) (command->cmd [BRASERO_SCSI_CMD_OPCODE_OFF] = command->info->opcode)
-#define OPEN_FLAGS O_RDWR /*|O_EXCL */|O_NONBLOCK
+#define OPEN_FLAGS O_RDONLY | O_NONBLOCK
gchar *
dump_bytes(guchar *buf, gint len)
@@ -205,8 +205,8 @@
BraseroDeviceHandle *handle;
gchar *rawdisk = NULL;
- if (exclusive)
- flags |= O_EXCL;
+/* if (exclusive) */
+/* flags |= O_EXCL; */
fd = open (path, flags);
if (fd < 0) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]