changeset 244:a27c81078c3c src

removing O_EXCL, since it does not work with DVD images (patch from Bastien)
author mroi
date Fri, 09 Apr 2004 12:15:26 +0000
parents e75c52894630
children b4f9a592bc84
files dvdread/dvd_input.c vm/vm.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/dvdread/dvd_input.c	Wed Mar 03 16:50:42 2004 +0000
+++ b/dvdread/dvd_input.c	Fri Apr 09 12:15:26 2004 +0000
@@ -170,7 +170,7 @@
   
   /* Open the device */
 #ifndef WIN32
-  dev->fd = open(target, O_RDONLY | O_EXCL);
+  dev->fd = open(target, O_RDONLY);
 #else
   dev->fd = open(target, O_RDONLY | O_BINARY);
 #endif
--- a/vm/vm.c	Wed Mar 03 16:50:42 2004 +0000
+++ b/vm/vm.c	Fri Apr 09 12:15:26 2004 +0000
@@ -135,7 +135,7 @@
     uint8_t data[DVD_VIDEO_LB_LEN];
 
     /* Read DVD name */
-    fd = open(device, O_RDONLY | O_EXCL);
+    fd = open(device, O_RDONLY);
     if (fd > 0) { 
       off = lseek( fd, 32 * (off_t) DVD_VIDEO_LB_LEN, SEEK_SET );
       if( off == ( 32 * (off_t) DVD_VIDEO_LB_LEN ) ) {